]> git.proxmox.com Git - ovs.git/commit - datapath/flow_netlink.c
datapath: Don't validate IPv6 label masks.
authorJoe Stringer <joestringer@nicira.com>
Tue, 25 Nov 2014 21:02:42 +0000 (13:02 -0800)
committerJoe Stringer <joestringer@nicira.com>
Tue, 25 Nov 2014 22:12:21 +0000 (14:12 -0800)
commit6572103876d00ace874e87325b72e31f159f4cca
tree2365ac041640d8df9d8c06cfe78ae2cd79228541
parenta70f8b11087a780fe4a13ecd50c7aef05ef519cc
datapath: 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>
datapath/flow_netlink.c