]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Use ttl from route lookup on tc encap offload only if needed
authorOr Gerlitz <ogerlitz@mellanox.com>
Tue, 24 Jul 2018 10:59:33 +0000 (13:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jul 2018 23:28:57 +0000 (16:28 -0700)
commitd1c41d7981fb8f370f1fe449f01a34c97d5db19f
tree4440089114757b64884c95db4851050ccca2926e
parent0333d7602bf4b5f534bd1b2c359f46a951c72347
net/mlx5e: Use ttl from route lookup on tc encap offload only if needed

Currnetly, the ttl for the encapsulation headers is taken from the
route lookup result. As a pre-step to allow for an offload case when
the user specifies the ttl, take it from the route lookup only if
not zero. While here, also move to use u8 instead int for the ttl.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c