[ovs-dev] [PATCH 1/2] Datapath: Bug fix: kernel rejects mega flow with encap masks

Andy Zhou azhou at nicira.com
Wed Jun 26 15:54:44 UTC 2013


Bug #18233

Signed-off-by: Andy Zhou <azhou at nicira.com>
---
 datapath/flow.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/datapath/flow.c b/datapath/flow.c
index fc6752e..778771f 100644
--- a/datapath/flow.c
+++ b/datapath/flow.c
@@ -1558,6 +1558,7 @@ int ovs_match_from_nlattrs(struct sw_flow_match *match,
 		if ((mask_attrs & 1ULL << OVS_KEY_ATTR_ENCAP) && encap_valid) {
 			__be16 eth_type = 0;
 
+			mask_attrs &= ~(1ULL << OVS_KEY_ATTR_ENCAP);
 			if (a[OVS_KEY_ATTR_ETHERTYPE])
 				eth_type = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]);
 			if (eth_type == htons(0xffff)) {
-- 
1.7.9.5




More information about the dev mailing list