]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx5e: SHAMPO, Fix FCS config when HW GRO on
authorDragos Tatulea <dtatulea@nvidia.com>
Mon, 3 Jun 2024 21:22:09 +0000 (00:22 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 6 Jun 2024 03:20:46 +0000 (20:20 -0700)
commita64bbd8c286fa67319df73ce842e3f6c7b08b6f6
tree879cfddf96216a385f1c6473b501071a65ff8cac
parentfba8334721e266f92079632598e46e5f89082f30
net/mlx5e: SHAMPO, Fix FCS config when HW GRO on

For the following scenario:

ethtool --features eth3 rx-gro-hw on
ethtool --features eth3 rx-fcs on
ethtool --features eth3 rx-fcs off

... there is a firmware error because the driver enables HW GRO first
while FCS is still enabled.

This patch fixes this by swapping the order of HW GRO and FCS for this
specific case. Take LRO into consideration as well for consistency.

Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/r/20240603212219.1037656-5-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c