linux/drivers/net/ethernet/intel/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
..
Kconfig libeth: xsk: add XSk XDP_TX sending helpers 2025-06-16 11:40:15 -07:00
Makefile libeth: xsk: add XSk XDP_TX sending helpers 2025-06-16 11:40:15 -07:00
priv.h libeth: xsk: add XSk Rx processing support 2025-06-16 11:40:15 -07:00
rx.c libeth: support native XDP and register memory model 2025-06-16 11:40:14 -07:00
tx.c libeth: xsk: add XSk XDP_TX sending helpers 2025-06-16 11:40:15 -07:00
xdp.c libeth: xsk: add XSk Rx processing support 2025-06-16 11:40:15 -07:00
xsk.c libeth, idpf: use truesize as XDP RxQ info frag_size 2026-03-05 08:02:05 -08:00