]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Reject ct_state unsupported bits
authorJoe Stringer <joestringer@nicira.com>
Tue, 6 Oct 2015 17:59:59 +0000 (10:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Oct 2015 12:03:05 +0000 (05:03 -0700)
commit351fe3e8f7c6306f1c6b72aeeaa0b4137724f0e7
tree640b5ffa111825c21aa8ff7847e3d466b1922005
parentc2d3d782d02170cb6bfcca3d3e97754350c1b0ec
openvswitch: Reject ct_state unsupported bits

Previously, if userspace specified ct_state bits in the flow key which
are currently undefined (and therefore unsupported), then they would be
ignored. This could cause unexpected behaviour in future if userspace is
extended to support additional bits but attempts to communicate with the
current version of the kernel. This patch rectifies the situation by
rejecting such ct_state bits.

Fixes: 7ea99650bc97 "openvswitch: Add conntrack action"
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/conntrack.h
net/openvswitch/flow_netlink.c