datapath: Add mask check during flow lookup
authorAndy Zhou <azhou@nicira.com>
Fri, 19 Jul 2013 18:11:24 +0000 (11:11 -0700)
committerJustin Pettit <jpettit@nicira.com>
Fri, 19 Jul 2013 22:02:05 +0000 (15:02 -0700)
commit97c56fa933a433f43d6cd51139fd4b019b56e139
treefe6b51ec6307160546f4cbcc0274ced0fb7160a2
parent479bf702858f357a04756ef5f8452c52f2117d5a
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