OSDN Git Service

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)
commit7d904c7bcd51f72579c0c3134a50896c5a3efb9f
tree6c37dd06d6890378e1a48221e09fa42980fd3d08
parent1c1779fa54b2a9d4e1de990095d790d64b9e00a1
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