summaryrefslogtreecommitdiff
path: root/lib/tc.h
diff options
context:
space:
mode:
authorAdi Nissim <adin@mellanox.com>2019-01-17 17:41:36 +0200
committerSimon Horman <simon.horman@netronome.com>2019-02-11 11:02:43 +0100
commit0227bf092ee6b5d18e2b79493d44769cb37ecc98 (patch)
tree42318df4b8403dcd97e89b001abead38d8aaac8e /lib/tc.h
parent47ab42a0b5f5a7b67f8a6f766144ae2b6052d783 (diff)
downloadopenvswitch-0227bf092ee6b5d18e2b79493d44769cb37ecc98.tar.gz
lib/tc: Support optional tunnel id
Currently the TC tunnel_key action is always initialized with the given tunnel id value. However, some tunneling protocols define the tunnel id as an optional field. This patch initializes the id field of tunnel_key:set and tunnel_key:unset only if a value is provided. In the case that a tunnel key value is not provided by the user the key flag will not be set. Signed-off-by: Adi Nissim <adin@mellanox.com> Acked-by: Paul Blakey <paulb@mellanox.com> Signed-off-by: Simon Horman <simon.horman@netronome.com>
Diffstat (limited to 'lib/tc.h')
-rw-r--r--lib/tc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tc.h b/lib/tc.h
index 6c909df21..3113206de 100644
--- a/lib/tc.h
+++ b/lib/tc.h
@@ -149,6 +149,7 @@ struct tc_action {
} vlan;
struct {
+ bool id_present;
ovs_be64 id;
ovs_be16 tp_src;
ovs_be16 tp_dst;