openvswitch: Don't validate IPv6 label masks.
authorJoe Stringer <joestringer@nicira.com>
Wed, 19 Nov 2014 21:54:49 +0000 (13:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Nov 2014 03:56:13 +0000 (22:56 -0500)
commitd3052bb5d306b29c1e7d9e5998c5ac4ca1ff0ca9
tree16383bb53c7b2edd338cb465ea6bfc41b368fad6
parenta5f6fc28d6e6cc379c6839f21820e62262419584
openvswitch: Don't validate IPv6 label masks.

When userspace doesn't provide a mask, OVS datapath generates a fully
unwildcarded mask for the flow by copying the flow and setting all bits
in all fields. For IPv6 label, this creates a mask that matches on the
upper 12 bits, causing the following error:

openvswitch: netlink: Invalid IPv6 flow label value (value=ffffffff, max=fffff)

This patch ignores the label validation check for masks, avoiding this
error.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/flow_netlink.c