]> 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)
commit7e0529263eebd011bdf96aede8c628c0cfaa51de
treed002fcb1a99f614b3d9fec74960f60dff93cada6
parent81db846b340b8018993bf9d19825217b483cef95
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: cdc33de7229e ("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