]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tg3: Fix num of RX queues being reported by ethtool
authorBreno Leitao <leitao@debian.org>
Fri, 7 Nov 2025 10:36:59 +0000 (02:36 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 11 Nov 2025 01:11:32 +0000 (17:11 -0800)
commit23c52b58cc38e398292f125e68b717001344444c
tree5fe27e332c1122b53aad5478403b80568fb12768
parentf5d8ec838b08e601e4652a81c9c444aed4f26829
tg3: Fix num of RX queues being reported by ethtool

Using num_online_cpus() to report number of queues is actually not
correct, as reported by Michael[1].

netif_get_num_default_rss_queues() was used to replace num_online_cpus()
in the past, but tg3 ethtool callbacks didn't get converted. Doing it
now.

Link: https://lore.kernel.org/all/CACKFLim7ruspmqvjr6bNRq5Z_XXVk3vVaLZOons7kMCzsEG23A@mail.gmail.com/#t
Signed-off-by: Breno Leitao <leitao@debian.org>
Suggested-by: Michael Chan <michael.chan@broadcom.com>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/20251107-tg3_counts-v1-1-337fe5c8ccb7@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/tg3.c