]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Allow offloading ipv4 header re-write for icmp
authorJianbo Liu <jianbol@mellanox.com>
Tue, 27 Mar 2018 09:22:16 +0000 (09:22 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 26 Apr 2018 19:43:18 +0000 (12:43 -0700)
commit947cf5aca334cfa6cf5b258c28579e146106fa5f
tree9671671e0c95bc6b1a93d40bdf2f8133465be317
parent3264806caa0c55130e3689728ba858a23282be45
net/mlx5e: Allow offloading ipv4 header re-write for icmp

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: f6c05ffa56ff ('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>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c