Fix learning-switch STP breakage from "out_port" in flow stats request.
authorBen Pfaff <blp@nicira.com>
Fri, 26 Dec 2008 18:28:17 +0000 (10:28 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 26 Dec 2008 21:26:41 +0000 (13:26 -0800)
commit5d69c233557908e25f25acaa8d21da10de1a2868
treee4f1ceb18774c0c961333ea768f3656b231d41e3
parentfaa47744f0d0ad4d1987d9722d15897d788625f4
Fix learning-switch STP breakage from "out_port" in flow stats request.

ofp_flow_stats_request recently added a new member, "out_port", to select
only flows that output to a particular port.  Unfortunately this code
in learning-switch.c was not updated to set that member to OFPP_NONE,
with the result that it would only get flows that output to port 0.

This bug was found when looking at this code for another reason and thus
is no guarantee that the STP code in learning-switch actually works.
lib/learning-switch.c