Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] net: ethernet: cortina: Use page_pool for Gemini RX buffers
@ 2026-09-20 20:48 Linus Walleij
  2026-09-20 20:48 ` [PATCH net-next 1/3] net: ethernet: cortina: Keep shared free queue parent-owned Linus Walleij
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Linus Walleij @ 2026-09-20 20:48 UTC (permalink / raw)
  To: Hans Ulli Kroll, Andrew Lunn, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Michał Mirosław,
	Myeonghun Pak
  Cc: netdev, Linus Walleij

The Gemini ethernet has this really convoluted queue mechanism using
a custom queue.

Move the Gemini RX buffer management to a parent-owned page_pool.

This series fixes DMA mapping and synchronization, fragment recycling,
and teardown while retaining the hardware free queue shared by both ports.

We need to track fragments by the exact DMA address returned by
hardware, since RX software IDs originate in the classification hash
table rather than the free queue.

Scale the default RX rings and shared free queue on Gemini systems
with 32 or 64 MiB of RAM, as the RAM usage may be a bit heavy on
those.

Assisted-by: LLM
Signed-off-by: Linus Walleij <linusw@kernel.org>
---
Linus Walleij (3):
      net: ethernet: cortina: Keep shared free queue parent-owned
      net: ethernet: cortina: Manage RX buffers with page_pool
      net: ethernet: cortina: Scale Gemini RX queues to system memory

 drivers/net/ethernet/cortina/Kconfig  |   1 +
 drivers/net/ethernet/cortina/gemini.c | 389 ++++++++++++++++++++++------------
 2 files changed, 252 insertions(+), 138 deletions(-)
---
base-commit: 2ff4ca33660706f4092866b220eb0c94940f7e0c
change-id: 20260919-gemini-ethernet-fixes-3-f0403653f23a

Best regards,
--  
Linus Walleij <linusw@kernel.org>


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

end of thread, other threads:[~2026-09-24 15:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-20 20:48 [PATCH net-next 0/3] net: ethernet: cortina: Use page_pool for Gemini RX buffers Linus Walleij
2026-09-20 20:48 ` [PATCH net-next 1/3] net: ethernet: cortina: Keep shared free queue parent-owned Linus Walleij
2026-09-22 18:51   ` netdev-bot+sashiko
2026-09-20 20:48 ` [PATCH net-next 2/3] net: ethernet: cortina: Manage RX buffers with page_pool Linus Walleij
2026-09-22 18:51   ` netdev-bot+sashiko
2026-09-20 20:48 ` [PATCH net-next 3/3] net: ethernet: cortina: Scale Gemini RX queues to system memory Linus Walleij
2026-09-24  1:28 ` [PATCH net-next 0/3] net: ethernet: cortina: Use page_pool for Gemini RX buffers Jakub Kicinski
2026-09-24  7:40   ` Linus Walleij
2026-09-24 15:58     ` Jakub Kicinski

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