]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ethtool: add support for ETHTOOL_GRXRINGS ioctl
authorBreno Leitao <leitao@debian.org>
Wed, 17 Sep 2025 09:58:09 +0000 (02:58 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 18 Sep 2025 14:07:37 +0000 (07:07 -0700)
commit06fad5a4aeb2622b7aeefd6ad60b6cf76c0b7c5b
treed5eb3aaa11ad34437690c5c643fa639dc83c777c
parent3efaede2e13b0c0372500a6acdfc5c31268a3ed4
net: ethtool: add support for ETHTOOL_GRXRINGS ioctl

This patch adds handling for the ETHTOOL_GRXRINGS ioctl command in the
ethtool ioctl dispatcher. It introduces a new helper function
ethtool_get_rxrings() that calls the driver's get_rxnfc() callback with
appropriate parameters to retrieve the number of RX rings supported
by the device.

By explicitly handling ETHTOOL_GRXRINGS, userspace queries through
ethtool can now obtain RX ring information in a structured manner.

In this patch, ethtool_get_rxrings() is a simply copy of
ethtool_get_rxnfc().

Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20250917-gxrings-v4-2-dae520e2e1cb@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/ioctl.c