mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 05:04:51 +01:00
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:
|
||
|---|---|---|
| .. | ||
| cache.h | ||
| rx.h | ||
| tx.h | ||
| types.h | ||
| xdp.h | ||
| xsk.h | ||