]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xsk: use __xsk_rcv_zc_safe for ZC multi-buffer Rx processing
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Mon, 16 Mar 2026 14:05:57 +0000 (15:05 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 18 Mar 2026 01:58:55 +0000 (18:58 -0700)
commit77378dabb50f593c756d393d8eacb0b91b758863
tree385ae7589032f9cb0e495fe6869f099b5a57c860
parent2364959abecb052d7b798ae51d0626edec8b9288
xsk: use __xsk_rcv_zc_safe for ZC multi-buffer Rx processing

Commit f620af11c27b ("xsk: avoid double checking against rx queue being
full") addressed a case in copy mode, when working with multi-buffer
xdp_buff, where we were peeking onto XSK Rx queue twice, to find out if
there is a space to produce descriptors.

Adjust ZC path to follow the same principle.

Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Link: https://lore.kernel.org/r/20260316140557.461288-1-maciej.fijalkowski@intel.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
net/xdp/xsk.c