[ovs-dev] [PATCH 20/48] learning-switch: Call ofputil_encode_flow_mod() with correct protocol

Simon Horman horms at verge.net.au
Mon Jun 25 06:44:23 UTC 2012


Empirically it appears that process_packet_in() should call
ofputil_encode_flow_mod() with protocol rather than sw->protocol.

Signed-off-by: Simon Horman <horms at 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




More information about the dev mailing list