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)
commit8998576bd9c695ef1297540a50d7b3abbc69286b
treed002fcb1a99f614b3d9fec74960f60dff93cada6
parentbc87a0036826a37b43489b029af8143bd07c6cca
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: 738678817573 ("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