[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230402193838.54474-1-gerhard@engleder-embedded.com>
Date: Sun, 2 Apr 2023 21:38:33 +0200
From: Gerhard Engleder <gerhard@...leder-embedded.com>
To: netdev@...r.kernel.org, bpf@...r.kernel.org
Cc: davem@...emloft.net, kuba@...nel.org, edumazet@...gle.com,
pabeni@...hat.com, bjorn@...nel.org, magnus.karlsson@...el.com,
maciej.fijalkowski@...el.com, jonathan.lemon@...il.com,
Gerhard Engleder <gerhard@...leder-embedded.com>
Subject: [PATCH net-next 0/5] tsnep: XDP socket zero-copy support
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
Powered by blists - more mailing lists