summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorLarysa Zaremba <larysa.zaremba@intel.com>2026-02-03 16:50:57 +0100
committerAlexei Starovoitov <ast@kernel.org>2026-02-06 09:36:36 -0800
commit42e41b2a0afa04ca49ee2725aadf90ccb058ed28 (patch)
tree2fddd7988cd2ffc3dca58de5e47479fc62e33d47 /scripts/patch-kernel
parent1ace9bac1ad2bc6a0a70baaa16d22b7e783e88c5 (diff)
selftests/xsk: properly handle batch ending in the middle of a packet
Referenced commit reduced the scope of the variable pkt, so now it has to be reinitialized via pkt_stream_get_next_rx_pkt(), which also increments some counters. When the packet is interrupted by the batch ending, pkt stream therefore proceeds to the next packet, while xsk ring still contains the previous one, this results in a pkt_nb mismatch. Decrement the affected counters when packet is interrupted. Fixes: 8913e653e9b8 ("selftests/xsk: Iterate over all the sockets in the receive pkts function") Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com> Signed-off-by: Larysa Zaremba <larysa.zaremba@intel.com> Link: https://lore.kernel.org/r/20260203155103.2305816-2-larysa.zaremba@intel.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions