From: Ben Pfaff Date: Wed, 18 Mar 2009 00:14:23 +0000 (-0700) Subject: in-band: Use OFPP_NORMAL instead of OFPP_LOCAL for traffic to local port. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f5e000c4fbd6678aa1c6e4f891344b64a32fc30;p=openvswitch in-band: Use OFPP_NORMAL instead of OFPP_LOCAL for traffic to local port. If we use OFPP_LOCAL then the code that implements the normal action won't get a chance to learn from these packets. This change seems somewhat risky, since in-band control is so touchy, which is why it is broken out as a separate commit that can easily be reverted. --- diff --git a/secchan/in-band.c b/secchan/in-band.c index b84a7751..b6b51d33 100644 --- a/secchan/in-band.c +++ b/secchan/in-band.c @@ -256,7 +256,7 @@ in_band_run(struct in_band *in_band) memset(&flow, 0, sizeof flow); memcpy(flow.dl_dst, local_mac, ETH_ADDR_LEN); setup_flow(in_band, IBR_TO_LOCAL_PORT, &flow, OFPFW_DL_DST, - OFPP_LOCAL); + OFPP_NORMAL); } else { drop_flow(in_band, IBR_TO_LOCAL_PORT); }