netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] tsnep: XDP socket zero-copy support
@ 2023-04-02 19:38 Gerhard Engleder
  2023-04-02 19:38 ` [PATCH net-next 1/5] tsnep: Rework TX/RX queue initialization Gerhard Engleder
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Gerhard Engleder @ 2023-04-02 19:38 UTC (permalink / raw)
  To: netdev, bpf
  Cc: davem, kuba, edumazet, pabeni, bjorn, magnus.karlsson,
	maciej.fijalkowski, jonathan.lemon, Gerhard Engleder

Implement XDP socket zero-copy support for tsnep driver. I tried to
follow existing drivers like igc as far as possible. But one main
difference is that tsnep does not need any reconfiguration for XDP BPF
program setup. So I decided to keep this behavior no matter if a XSK
pool is used or not. As a result, tsnep starts using the XSK pool even
if no XDP BPF program is available.

Another difference is that I tried to prevent potentially failing
allocations during XSK pool setup. E.g. both memory models for page pool
and XSK pool are registered all the time. Thus, XSK pool setup cannot
end up with not working queues.

Some prework is done to reduce the last two XSK commits to actual XSK
changes.

Gerhard Engleder (5):
  tsnep: Rework TX/RX queue initialization
  tsnep: Add functions for queue enable/disable
  tsnep: Move skb receive action to separate function
  tsnep: Add XDP socket zero-copy RX support
  tsnep: Add XDP socket zero-copy TX support

 drivers/net/ethernet/engleder/tsnep.h      |   9 +
 drivers/net/ethernet/engleder/tsnep_main.c | 770 ++++++++++++++++++---
 drivers/net/ethernet/engleder/tsnep_xdp.c  |  67 ++
 3 files changed, 738 insertions(+), 108 deletions(-)

-- 
2.30.2


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

end of thread, other threads:[~2023-04-15 14:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-02 19:38 [PATCH net-next 0/5] tsnep: XDP socket zero-copy support Gerhard Engleder
2023-04-02 19:38 ` [PATCH net-next 1/5] tsnep: Rework TX/RX queue initialization Gerhard Engleder
2023-04-02 19:38 ` [PATCH net-next 2/5] tsnep: Add functions for queue enable/disable Gerhard Engleder
2023-04-02 19:38 ` [PATCH net-next 3/5] tsnep: Move skb receive action to separate function Gerhard Engleder
2023-04-02 19:38 ` [PATCH net-next 4/5] tsnep: Add XDP socket zero-copy RX support Gerhard Engleder
2023-04-03 17:19   ` Maciej Fijalkowski
2023-04-03 17:26     ` Maciej Fijalkowski
2023-04-05 19:13       ` Gerhard Engleder
2023-04-07 13:41         ` Maciej Fijalkowski
2023-04-15 14:19           ` Gerhard Engleder
2023-04-05 18:49     ` Gerhard Engleder
2023-04-02 19:38 ` [PATCH net-next 5/5] tsnep: Add XDP socket zero-copy TX support Gerhard Engleder
2023-04-03 22:36   ` Maciej Fijalkowski
2023-04-05 19:15     ` Gerhard Engleder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).