Empirically it appears that process_packet_in() should call ofputil_encode_flow_mod() with protocol rather than sw->protocol.
Signed-off-by: Simon Horman <ho...@verge.net.au> --- v4 * No change v3 * Initial post --- lib/learning-switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/learning-switch.c b/lib/learning-switch.c index e5f726b..ec0b64b 100644 --- a/lib/learning-switch.c +++ b/lib/learning-switch.c @@ -527,7 +527,7 @@ process_packet_in(struct lswitch *sw, struct rconn *rconn, fm.out_port = OFPP_NONE; fm.ofpacts = ofpacts.data; fm.ofpacts_len = ofpacts.size; - buffer = ofputil_encode_flow_mod(&fm, sw->protocol); + buffer = ofputil_encode_flow_mod(&fm, protocol); queue_tx(sw, rconn, buffer); -- 1.7.10.2.484.gcd07cc5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev