]> git.proxmox.com Git - ovs.git/commit
tc: handle packet mark of zero
authorJohn Hurley <john.hurley@netronome.com>
Thu, 19 Dec 2019 14:58:43 +0000 (14:58 +0000)
committerSimon Horman <simon.horman@netronome.com>
Tue, 28 Jan 2020 20:05:45 +0000 (21:05 +0100)
commit10b4c80bd3557dbc30c6dcecc00e892fa4041c54
tree268b5f09fa3da7d43c0f548485216ba89cff3a68
parent498fe04810d12b21cf15b6a78a8afab0ee028d49
tc: handle packet mark of zero

Openstack may set an skb mark of 0 in tunnel rules. This is considered to
be an unused/unset value. However, it prevents the rule from being
offloaded.

Check if the key value of the skb mark is 0 when it is in use (mask is
set to all ones). If it is then ignore the field and continue with TC offload.

Only the exact-match case is covered by this patch as it addresses the
Openstack use-case and seems most robust against feature evolution: f.e. in
future there may exist hardware offload scenarios where an operation, such
as a BPF offload, sets the SKB mark before proceeding tho the in-HW OVS.
datapath.

Signed-off-by: John Hurley <john.hurley@netronome.com>
Co-Authored-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Acked-by: Aaron Conole <aconole@redhat.com>
lib/netdev-offload-tc.c