]> 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)
commite9601dbdd2c8f4c48fa8aa5c87c325c939a5797f
tree640b5ffa111825c21aa8ff7847e3d466b1922005
parent24f3019cc4241b9eac67dd52a1ea7b93f7f2b7cc
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: 14a5d06d39dd "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