mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: marvell: modernize RX ring count ethtool callbacks
@ 2025-11-21 17:02 Breno Leitao
  2025-11-21 17:02 ` [PATCH net-next 1/2] net: mvneta: convert to use .get_rx_ring_count Breno Leitao
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Breno Leitao @ 2025-11-21 17:02 UTC (permalink / raw)
  To: Marcin Wojtas, Andrew Lunn, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Russell King
  Cc: netdev, linux-kernel, kernel-team, Breno Leitao

This series converts the Marvell mvneta and mvpp2 drivers to use the new
.get_rx_ring_count ethtool operation, following the ongoing modernization
of the ethtool API introduced in commit 84eaf4359c36 ("net: ethtool: add
get_rx_ring_count callback to optimize RX ring queries").

The conversion simplifies the code by replacing the generic .get_rxnfc
callback with the more specific .get_rx_ring_count callback for retrieving
RX ring counts. For mvneta, this completely removes .get_rxnfc since it
only handled ETHTOOL_GRXRINGS. For mvpp2, the GRXRINGS case is extracted
while keeping other rxnfc handlers intact.

PS: These changes were compile-tested only.
---
Breno Leitao (2):
      net: mvneta: convert to use .get_rx_ring_count
      net: mvpp2: extract GRXRINGS from .get_rxnfc

 drivers/net/ethernet/marvell/mvneta.c           | 14 +++-----------
 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 11 ++++++++---
 2 files changed, 11 insertions(+), 14 deletions(-)
---
base-commit: e2c20036a8879476c88002730d8a27f4e3c32d4b
change-id: 20251121-marvell-0264eb5b214a

Best regards,
--  
Breno Leitao <leitao@debian.org>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-11-25  3:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-21 17:02 [PATCH net-next 0/2] net: marvell: modernize RX ring count ethtool callbacks Breno Leitao
2025-11-21 17:02 ` [PATCH net-next 1/2] net: mvneta: convert to use .get_rx_ring_count Breno Leitao
2025-11-21 17:02 ` [PATCH net-next 2/2] net: mvpp2: extract GRXRINGS from .get_rxnfc Breno Leitao
2025-11-25  3:50 ` [PATCH net-next 0/2] net: marvell: modernize RX ring count ethtool callbacks patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®