diff options
author | Joe Stringer <joestringer@nicira.com> | 2015-08-26 21:31:52 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-27 21:40:43 +0300 |
commit | c2ac667358708d7cce64c78f58af6adf4c1e848b (patch) | |
tree | f24ccd3b0e54fe0ba09ecadb837eef3ecaa014c8 /net/openvswitch/actions.c | |
parent | 86ca02e77408bb58ba596c1a411ec7f631733690 (diff) | |
download | linux-c2ac667358708d7cce64c78f58af6adf4c1e848b.tar.xz |
openvswitch: Allow matching on conntrack label
Allow matching and setting the ct_label field. As with ct_mark, this is
populated by executing the CT action. The label field may be modified by
specifying a label and mask nested under the CT action. It is stored as
metadata attached to the connection. Label modification occurs after
lookup, and will only persist when the conntrack entry is committed by
providing the COMMIT flag to the CT action. Labels are currently fixed
to 128 bits in size.
Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/actions.c')
-rw-r--r-- | net/openvswitch/actions.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/openvswitch/actions.c b/net/openvswitch/actions.c index 9741d2c703df..736a113a75c3 100644 --- a/net/openvswitch/actions.c +++ b/net/openvswitch/actions.c @@ -969,6 +969,7 @@ static int execute_masked_set_action(struct sk_buff *skb, case OVS_KEY_ATTR_CT_STATE: case OVS_KEY_ATTR_CT_ZONE: case OVS_KEY_ATTR_CT_MARK: + case OVS_KEY_ATTR_CT_LABEL: err = -EINVAL; break; } |