X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Fflow.c;h=95fea7f224b5d719c5eb0f34a0f0e54e9b9fc4cf;hb=a99c219c5d08a93f1158fcd1df0f4a429bc9062f;hp=752c8d6b348f472d50a1915a3a14a9db03df3beb;hpb=bca0b3b4e2ec98193258e67720bc29c81be6cd6f;p=sliver-openvswitch.git diff --git a/datapath/flow.c b/datapath/flow.c index 752c8d6b3..95fea7f22 100644 --- a/datapath/flow.c +++ b/datapath/flow.c @@ -1048,7 +1048,8 @@ static struct sw_flow *ovs_masked_flow_lookup(struct flow_table *table, hash = ovs_flow_hash(&masked_key, key_start, key_len); head = find_bucket(table, hash); hlist_for_each_entry_rcu(flow, head, hash_node[table->node_ver]) { - if (__flow_cmp_key(flow, &masked_key, key_start, key_len)) + if (flow->mask == mask && + __flow_cmp_key(flow, &masked_key, key_start, key_len)) return flow; } return NULL;