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:00 +0000 (12:25 -0800)
commit8f1e88e62ae1f26f98675b94e1ab40c06d2dadfc
tree2bb4f6bf4f4aa3b0b8764ec3c60c84cca8159164
parentc29880db6d78179ffc07e7b0b175ec34795a2251
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