]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5e: Rx, Fix checksum calculation for new hardware
authorSaeed Mahameed <saeedm@mellanox.com>
Fri, 3 May 2019 20:14:59 +0000 (13:14 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jul 2019 06:27:19 +0000 (08:27 +0200)
commit9f71542e21bf80444302c8e28c2fd3cd51038af2
treef28fdd918c3005fdfe3e0e879b4f5574b3d26879
parent5f9ea2cb7f0e97d2b17ed66fe935c2ae99322003
net/mlx5e: Rx, Fix checksum calculation for new hardware

[ Upstream commit db849faa9bef993a1379dc510623f750a72fa7ce ]

CQE checksum full mode in new HW, provides a full checksum of rx frame.
Covering bytes starting from eth protocol up to last byte in the received
frame (frame_size - ETH_HLEN), as expected by the stack.

Fixing up skb->csum by the driver is not required in such case. This fix
is to avoid wrong checksum calculation in drivers which already support
the new hardware with the new checksum mode.

Fixes: 85327a9c4150 ("net/mlx5: Update the list of the PCI supported devices")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
include/linux/mlx5/mlx5_ifc.h