Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net/mlx5e: Add hds-thresh query support via ethtool

Add support for reporting HDS (Header-Data Split) threshold via
ethtool. When applicable, mlx5 hardware splits packets of all sizes with
no configurable threshold, so report both hds-thresh and hds-thresh-max
as 0 (i.e. always split regardless of size).

Signed-off-by: Nimrod Oren <noren@nvidia.com>
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Joe Damato <joe@dama.to>
Link: https://patch.msgid.link/20260317104934.16124-1-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Nimrod Oren and committed by
Jakub Kicinski
d347b28c c3f25894

+5 -1
+5 -1
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
··· 371 371 param->tx_max_pending = 1 << MLX5E_PARAMS_MAXIMUM_LOG_SQ_SIZE; 372 372 param->rx_pending = 1 << priv->channels.params.log_rq_mtu_frames; 373 373 param->tx_pending = 1 << priv->channels.params.log_sq_size; 374 + 375 + kernel_param->hds_thresh = 0; 376 + kernel_param->hds_thresh_max = 0; 374 377 } 375 378 376 379 static void mlx5e_get_ringparam(struct net_device *dev, ··· 2738 2735 ETHTOOL_COALESCE_USE_ADAPTIVE | 2739 2736 ETHTOOL_COALESCE_USE_CQE, 2740 2737 .supported_input_xfrm = RXH_XFRM_SYM_OR_XOR, 2741 - .supported_ring_params = ETHTOOL_RING_USE_TCP_DATA_SPLIT, 2738 + .supported_ring_params = ETHTOOL_RING_USE_TCP_DATA_SPLIT | 2739 + ETHTOOL_RING_USE_HDS_THRS, 2742 2740 .get_drvinfo = mlx5e_get_drvinfo, 2743 2741 .get_link = ethtool_op_get_link, 2744 2742 .get_link_ext_state = mlx5e_get_link_ext_state,