Re: [PATCH net-next] net: bnx2x: convert to use get_rx_ring_count

From: Simon Horman

Date: Fri Nov 14 2025 - 11:45:26 EST


On Wed, Nov 12, 2025 at 01:50:23AM -0800, Breno Leitao wrote:
> Convert the bnx2x driver to use the new .get_rx_ring_count ethtool
> operation instead of implementing .get_rxnfc solely for handling
> ETHTOOL_GRXRINGS command. This simplifies the code by replacing the
> switch statement with a direct return of the queue count.
>
> The new callback provides the same functionality in a more direct way,
> following the ongoing ethtool API modernization.
>
> Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>