Re: [PATCH net-next] tg3: Fix num of RX queues being reported by ethtool
From: Michael Chan
Date: Fri Nov 07 2025 - 12:31:11 EST
On Fri, Nov 7, 2025 at 2:37 AM Breno Leitao <leitao@xxxxxxxxxx> wrote:
>
> 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@xxxxxxxxxxxxxx/#t [1]
>
> Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>
> Suggested-by: Michael Chan <michael.chan@xxxxxxxxxxxx>
Thanks.
Reviewed-by: Michael Chan <michael.chan@xxxxxxxxxxxx>
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature