datapath: Add mask check during flow lookup
authorAndy Zhou <azhou@nicira.com>
Fri, 19 Jul 2013 18:11:24 +0000 (11:11 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Fri, 19 Jul 2013 14:33:42 +0000 (07:33 -0700)
commita99c219c5d08a93f1158fcd1df0f4a429bc9062f
tree499ac25477d6208bbdf023b939834001a7b38a45
parentbca0b3b4e2ec98193258e67720bc29c81be6cd6f
datapath: Add mask check during flow lookup

A mega flow matches when the masked key matches and the mask applied
is the same as the mask used to create the mega flow.

This patch adds the implementation of the second match condition
mentioned above. Without this fix, mega flow lookup may result false
match.

Bug #18584

Signed-off-by: Andy Zhou <azhou@nicira.com>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
datapath/flow.c