Skip to content
Commit 19e7a3df authored by Daniele Di Proietto's avatar Daniele Di Proietto Committed by Pravin B Shelar
Browse files

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 03f0d916

 ("openvswitch: Mega flow implementation").

Signed-off-by: default avatarDaniele Di Proietto <ddiproietto@vmware.com>
Signed-off-by: default avatarPravin B Shelar <pshelar@nicira.com>
parent 856447d0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment