diff options
| author | Breno Leitao <leitao@debian.org> | 2025-11-12 12:50:23 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-11-15 05:04:21 +0300 |
| commit | 04ca7a69a35b060ecee60a9923e9891f5dd92eca (patch) | |
| tree | 2bab5182d1b448a4b6c7c6e1476b0965cab85069 /include/linux | |
| parent | f455d3f02d8998edb20a0accac5eeee769bd6fcd (diff) | |
| download | linux-04ca7a69a35b060ecee60a9923e9891f5dd92eca.tar.xz | |
net: bnx2x: convert to use get_rx_ring_count
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@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20251112-bnx_grxrings-v1-1-1c2cb73979e2@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
