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:13:26 +0000 (12:13 -0800)
commit53fd5c7c6d23f21872afcb041de1520fb9bb8343
tree4798cce7aa814466dff926cba91bc9b75ebbd520
parentbf062576fd748fc526903c428ffa847032a7b1d0
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