]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mlx4: extract GRXRINGS from .get_rxnfc
authorBreno Leitao <leitao@debian.org>
Thu, 13 Nov 2025 16:46:03 +0000 (08:46 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 18 Nov 2025 00:57:32 +0000 (16:57 -0800)
commit467c3f008d0cafe8c21af7ad9f3036c1a15ec13d
tree5e69a9214f0a3ea0f620dad195f744033e91a08b
parentc9dfb92de0738eb7fe6a591ad1642333793e8b6e
mlx4: extract GRXRINGS from .get_rxnfc

Commit 84eaf4359c36 ("net: ethtool: add get_rx_ring_count callback to
optimize RX ring queries") added specific support for GRXRINGS callback,
simplifying .get_rxnfc.

Remove the handling of GRXRINGS in .get_rxnfc() by moving it to the new
.get_rx_ring_count().

This simplifies the RX ring count retrieval and aligns mlx4 with the new
ethtool API for querying RX ring parameters. This is compiled tested
only.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20251113-mlx_grxrings-v1-1-0017f2af7dd0@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c