net/mlx5e: Allow offloading ipv4 header re-write for icmp
commit7d8edc86395147f089b89324f4928dccd9df7e8a
authorJianbo Liu <jianbol@mellanox.com>
Tue, 27 Mar 2018 09:22:16 +0000 (27 09:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 May 2018 08:19:34 +0000 (19 10:19 +0200)
tree0cdbd993e6a8469fbe3aa2f653b0b562b2ba560f
parent8c897b4f093d7f9d339e4564b597963e5a5e625e
net/mlx5e: Allow offloading ipv4 header re-write for icmp

[ Upstream commit 1ccef350db2f13715040a10df77ae672206004cf ]

For ICMPv4, the checksum is calculated from the ICMP headers and data.
Since the ICMPv4 checksum doesn't cover the IP header, we can allow to
do L3 header re-write for this protocol.

Fixes: bdd66ac0aeed ('net/mlx5e: Disallow TC offloading of unsupported match/action combinations')
Signed-off-by: Jianbo Liu <jianbol@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c