ofproto: Update only OFPUTIL_PS_LINK_DOWN (not STP) from netdev state.
authorBen Pfaff <blp@nicira.com>
Thu, 20 Feb 2014 20:13:26 +0000 (12:13 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 20 Feb 2014 20:25:04 +0000 (12:25 -0800)
commit97eba824fca691f4c18a4e3eb08fb1b4b22e07ef
treee1212fa0c044f9bbbb26c3b9a83b9013ef2b1f93
parent40ad4571220f7fe6227c9008b76241e564e2daea
ofproto: Update only OFPUTIL_PS_LINK_DOWN (not STP) from netdev state.

When a netdev indicates that its state or configuration has changed,
update_port() updates the OpenFlow port to match the changes.  However,
this was being taken too far: a netdev does not have an STP state, and a
state change was resetting the STP state of the port.  This fixes the
problem.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Reported-by: Vasu Dasari <vdasari@gmail.com>
Tested-by: Vasu Dasari <vdasari@gmail.com>
ofproto/ofproto.c