linux/include/net/libeth
Larysa Zaremba 75d9228982 libeth, idpf: use truesize as XDP RxQ info frag_size
The only user of frag_size field in XDP RxQ info is
bpf_xdp_frags_increase_tail(). It clearly expects whole buffer size instead
of DMA write size. Different assumptions in idpf driver configuration lead
to negative tailroom.

To make it worse, buffer sizes are not actually uniform in idpf when
splitq is enabled, as there are several buffer queues, so rxq->rx_buf_size
is meaningless in this case.

Use truesize of the first bufq in AF_XDP ZC, as there is only one. Disable
growing tail for regular splitq.

Fixes: ac8a861f63 ("idpf: prepare structures to support XDP")
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Larysa Zaremba <larysa.zaremba@intel.com>
Link: https://patch.msgid.link/20260305111253.2317394-8-larysa.zaremba@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-03-05 08:02:05 -08:00
..
cache.h libeth: add cacheline / struct layout assertion helpers 2024-07-10 10:29:53 -07:00
rx.h libeth: support native XDP and register memory model 2025-06-16 11:40:14 -07:00
tx.h libeth: xsk: add XSk xmit functions 2025-06-16 11:40:15 -07:00
types.h libeth: xdp: add XDP prog run and verdict result handling 2025-06-16 11:40:14 -07:00
xdp.h libeth: xdp: Disable generic kCFI pass for libeth_xdp_tx_xmit_bulk() 2025-10-29 20:04:55 -07:00
xsk.h libeth, idpf: use truesize as XDP RxQ info frag_size 2026-03-05 08:02:05 -08:00