]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ixgbe: convert to use .get_rx_ring_count
authorBreno Leitao <leitao@debian.org>
Thu, 13 Nov 2025 14:23:29 +0000 (06:23 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 15 Nov 2025 02:02:22 +0000 (18:02 -0800)
commitf455d3f02d8998edb20a0accac5eeee769bd6fcd
treec025d6dcb2d83b933bc39ee43b72bfa7794d3d63
parent06ac470658190e97518f131df01c9c530c293320
net: ixgbe: convert to use .get_rx_ring_count

Convert the ixgbe driver to use the new .get_rx_ring_count ethtool
operation for handling ETHTOOL_GRXRINGS command. This simplifies the
code by extracting the ring count logic into a dedicated callback.

The new callback provides the same functionality in a more direct way,
following the ongoing ethtool API modernization.

This was compile-tested only.

Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20251113-ixgbe_gxrings-v2-1-0ecf57808a78@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c