]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Allow IPv4 ttl & IPv6 hop_limit rewrite for all L4 protocols
authorDmytro Linkin <dmitrolin@mellanox.com>
Mon, 4 Feb 2019 09:45:47 +0000 (09:45 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 29 Mar 2019 19:24:41 +0000 (12:24 -0700)
commitbe74ba8a887764cfb4ee4d603e1ffea2a1f4904f
treed002fcb1a99f614b3d9fec74960f60dff93cada6
parenta9263430e65ebed93baf33806bb3b82d0513bc8b
net/mlx5e: Allow IPv4 ttl & IPv6 hop_limit rewrite for all L4 protocols

For some protocols we are not allowing IP header rewrite offload, since
the HW is not capable to properly adjust the l4 checksum. However, TTL
& HOPLIMIT modification can be done for all IP protocols, because they
are not part of the pseudo header taken into account for checksum.

Fixes: 17936b4dbfff ("drivers: net: use flow action infrastructure")
Signed-off-by: Dmytro Linkin <dmitrolin@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c