]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Only set mark and labels with a commit flag.
authorJarno Rajahalme <jarno@ovn.org>
Tue, 21 Jun 2016 21:59:38 +0000 (14:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Jun 2016 15:55:51 +0000 (11:55 -0400)
commitf749ad2ab599fae691a11a53144e2f42cdd4f404
tree6c37dd06d6890378e1a48221e09fa42980fd3d08
parentcee1e36e6059ea1fad5fd96fcc2ed46471c96690
openvswitch: Only set mark and labels with a commit flag.

Only set conntrack mark or labels when the commit flag is specified.
This makes sure we can not set them before the connection has been
persisted, as in that case the mark and labels would be lost in an
event of an userspace upcall.

OVS userspace already requires the commit flag to accept setting
ct_mark and/or ct_labels.  Validate for this in the kernel API.

Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/conntrack.c