net/mlx5e: Support ethtool tcp-data-split settings
authorSaeed Mahameed <saeedm@nvidia.com>
Mon, 16 Jun 2025 14:14:40 +0000 (17:14 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Jun 2025 01:34:13 +0000 (18:34 -0700)
commit46bcce5dfd330c233e59cd5efd7eb43f049b0a82
tree5c9d3a42fc3ad0114339a6e4ea821792f2ecb0b5
parentb2588ea40ec9472688289c1a644627c0f4a1f33f
net/mlx5e: Support ethtool tcp-data-split settings

In mlx5, tcp header-data split requires HW GRO to be on.

Enabling it fails when HW GRO is off.
mlx5e_fix_features now keeps HW GRO on when tcp data split is enabled.
Finally, when tcp data split is disabled, features are updated to maybe
remove the forced HW GRO.

Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Link: https://patch.msgid.link/20250616141441.1243044-12-mbloch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c