Netdev List
 help / color / mirror / Atom feed
* [PATCH net v4 0/4] net: mvpp2: fix XDP RX buffer handling
@ 2026-06-05 15:44 Til Kaiser
  2026-06-05 15:44 ` [PATCH net v4 1/4] net: mvpp2: sync RX data at the hardware packet offset Til Kaiser
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Til Kaiser @ 2026-06-05 15:44 UTC (permalink / raw)
  To: netdev, bpf
  Cc: marcin.s.wojtas, linux, andrew+netdev, davem, edumazet, kuba,
	pabeni, ast, daniel, hawk, john.fastabend, sdf, mcroce,
	sven.auhagen, lorenzo, Til Kaiser

This is v4 of the earlier XDP_PASS fix. The XDP_PASS change is
retained, and the series also fixes related RX/XDP buffer handling
issues found during review.

Tested with tools/testing/selftests/drivers/net/xdp.py on mvpp2
hardware.

---
v1: https://lore.kernel.org/all/20260524122334.1730451-1-mail@tk154.de/
v2: https://lore.kernel.org/all/20260602164635.62517-1-mail@tk154.de/

Changes in v4:
- Reposted as a new independent thread, no code changes.

Changes in v3:
- Reworked RX refill failure handling to preserve BM pool depth by
  refilling before the current buffer is consumed by XDP or an skb.

Changes in v2:
- Fixed RX DMA sync range to account for RX headroom.
- Limited XDP frame size to the actual RX buffer size.
- Fixed refill error paths so retired buffers are not returned to BM.

Til Kaiser (4):
  net: mvpp2: sync RX data at the hardware packet offset
  net: mvpp2: limit XDP frame size to the RX buffer
  net: mvpp2: refill RX buffers before XDP or skb use
  net: mvpp2: build skb from XDP-adjusted data on XDP_PASS

 .../net/ethernet/marvell/mvpp2/mvpp2_main.c   | 61 +++++++++++--------
 1 file changed, 36 insertions(+), 25 deletions(-)

-- 
2.54.0


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

end of thread, other threads:[~2026-06-05 15:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-05 15:44 [PATCH net v4 0/4] net: mvpp2: fix XDP RX buffer handling Til Kaiser
2026-06-05 15:44 ` [PATCH net v4 1/4] net: mvpp2: sync RX data at the hardware packet offset Til Kaiser
2026-06-05 15:44 ` [PATCH net v4 2/4] net: mvpp2: limit XDP frame size to the RX buffer Til Kaiser
2026-06-05 15:44 ` [PATCH net v4 3/4] net: mvpp2: refill RX buffers before XDP or skb use Til Kaiser
2026-06-05 15:44 ` [PATCH net v4 4/4] net: mvpp2: build skb from XDP-adjusted data on XDP_PASS Til Kaiser

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