]> git.proxmox.com Git - mirror_ovs.git/commit
lib/tc: Support optional tunnel id
authorAdi Nissim <adin@mellanox.com>
Thu, 17 Jan 2019 15:41:36 +0000 (17:41 +0200)
committerSimon Horman <simon.horman@netronome.com>
Mon, 11 Feb 2019 10:02:43 +0000 (11:02 +0100)
commit0227bf092ee6b5d18e2b79493d44769cb37ecc98
tree42318df4b8403dcd97e89b001abead38d8aaac8e
parent47ab42a0b5f5a7b67f8a6f766144ae2b6052d783
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>
lib/netdev-tc-offloads.c
lib/tc.c
lib/tc.h