[ovs-dev] [PATCH 2/2] meta-flow: Fix ip_frag handling in mf_set_wild().

Jarno Rajahalme jrajahalme at nicira.com
Tue Aug 18 23:17:55 UTC 2015


The wildcard bits were set when they should have been cleared.

Found by inspection.

Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
---
 lib/meta-flow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/meta-flow.c b/lib/meta-flow.c
index 4c7cf2c..528c109 100644
--- a/lib/meta-flow.c
+++ b/lib/meta-flow.c
@@ -1508,7 +1508,7 @@ mf_set_wild(const struct mf_field *mf, struct match *match)
         break;
 
     case MFF_IP_FRAG:
-        match->wc.masks.nw_frag |= FLOW_NW_FRAG_MASK;
+        match->wc.masks.nw_frag &= ~FLOW_NW_FRAG_MASK;
         match->flow.nw_frag &= ~FLOW_NW_FRAG_MASK;
         break;
 
-- 
2.1.4




More information about the dev mailing list