]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Fix NDP flow mask validation
authorDaniele Di Proietto <ddiproietto@vmware.com>
Tue, 11 Nov 2014 22:51:22 +0000 (14:51 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Fri, 14 Nov 2014 23:13:26 +0000 (15:13 -0800)
commitd269c371d5fc7d6f334f9225292f1f282f602cf2
tree528fdd69bfd422bc9d8c0150ed724c0500a07623
parent91f5752abbfa2d6bd9e2cbb3d7eda9080a6da68a
openvswitch: 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
Introduced by commit b2eab510a19e ("openvswitch: Mega flow implementation").

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