]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit06b527c60ec26ec45cba9e87cefe7c56f60566f5
tree16383bb53c7b2edd338cb465ea6bfc41b368fad6
parentf190e2bce449d97619b0cdd77221f32336f5ae42
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