]> git.proxmox.com Git - ovs.git/commit
lib/tc: Avoid matching on tunnel ttl or tos if not needed
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 6 Sep 2018 10:52:26 +0000 (13:52 +0300)
committerSimon Horman <simon.horman@netronome.com>
Fri, 7 Sep 2018 13:05:02 +0000 (15:05 +0200)
commit49a7961fca6516866eb46b622bb39776b6cd071f
treeaadfb9ac67f0b85816f01816346cc687d584562d
parent105e8179cebf862687f4049c36f831960b6a6367
lib/tc: Avoid matching on tunnel ttl or tos if not needed

The tunnel ttl key is not masked when provided to the tc lib, hence we
wrongly attempted to match on it, when we got non zero ttl key with a zero
mask. Fix it by applying the mask. Use the same practice for the tunnel tos.

Fixes: dd83253e117c ('lib/tc: Support matching on ip tunnel tos and ttl')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reported-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
lib/netdev-tc-offloads.c
lib/tc.c