datapath/flow_netlink: Fix NDP flow mask validation
authorDaniele Di Proietto <ddiproietto@vmware.com>
Thu, 10 Jul 2014 19:35:18 +0000 (12:35 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 10 Jul 2014 19:35:18 +0000 (12:35 -0700)
commit4b8514e109dfa46d14aafedf644cc1351e06bfbf
tree72d3b04d8597d6e57bb050bfecda3b9a9557f598
parent196780c2c4fb668d1d44555f172453db3a0e8eb8
datapath/flow_netlink: Fix NDP flow mask validation

match_validate() enforce that a mask matching on NDP attributes has also an
exact match on ICMPv6 type.
The ICMPv6 type, which is 8-bit wide, is stored in the 'tp.src' field of
'struct sw_flow_key', which is 16-bit wide.
Therefore, an exact match on ICMPv6 type should only check the first 8 bits.

This commit fixes a bug that prevented flows with an exact match on NDP field
from being installed

Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
datapath/flow_netlink.c