Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'fix-some-corner-cases-in-xskxceiver'

Larysa Zaremba says:

====================
Fix some corner cases in xskxceiver

While working on XDP and AF_XDP support for ixgbevf driver,
I came across two distinct problems that caused tests to fail
when they shouldn't have.
====================

Link: https://patch.msgid.link/20260203155103.2305816-1-larysa.zaremba@intel.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

+3 -1
+3 -1
tools/testing/selftests/bpf/prog_tests/test_xsk.c
··· 433 433 } 434 434 435 435 /* Search for the end of the packet in verbatim mode */ 436 - if (!pkt_continues(pkt->options)) 436 + if (!pkt_continues(pkt->options) || !pkt->valid) 437 437 return nb_frags; 438 438 439 439 next_frag = pkt_stream->current_pkt_nb; ··· 1090 1090 xsk_ring_prod__cancel(&umem->fq, nb_frags); 1091 1091 } 1092 1092 frags_processed -= nb_frags; 1093 + pkt_stream_cancel(pkt_stream); 1094 + pkts_sent--; 1093 1095 } 1094 1096 1095 1097 if (ifobj->use_fill_ring)