[Devel] [PATCH hci-8.1] ms/selftests/xsk: properly handle batch ending in the middle of a packet
Konstantin Khorenko
khorenko at virtuozzo.com
Thu Nov 12 20:34:02 MSK 2026
Applying with these fixes on my side:
- Rebase note: 3ab77f35a75e moved the code to test_xsk.c, the move
to prog_tests/ is d1aec26fce25. The note now names both.
On Fri, 6 Nov 2026 16:54:56 +0200, Eva Kurchatova <eva.kurchatova at virtuozzo.com> wrote:
> Rebase note: applied to xskxceiver.c, which mainline split into
> prog_tests/test_xsk.c in commit 3ab77f35a75e ("selftests/bpf:
> test_xsk: Split xskxceiver"), missing here. The code is the same.
3ab77f35a75e created tools/testing/selftests/bpf/test_xsk.c. The file
went to prog_tests/ later, in d1aec26fce25 ("selftests/bpf: test_xsk:
Integrate test_xsk.c to test_progs framework"). The note now reads:
Rebase note: applied to xskxceiver.c. Mainline moved this code to
test_xsk.c in commit 3ab77f35a75e ("selftests/bpf: test_xsk: Split
xskxceiver") and then to prog_tests/ in commit d1aec26fce25
("selftests/bpf: test_xsk: Integrate test_xsk.c to test_progs
framework"). Neither is here. The code is the same.
Separate patches, not needed for this one; I created a task for
each:
1. 2233ef8bba81 ("selftests/bpf: test_xsk: Initialize bitmap before
use"). send_pkts() and receive_pkts() in xskxceiver.c still use
DECLARE_BITMAP() without bitmap_zero(). Stack garbage in the bitmap
can make send_pkts() return before sending anything, even with one
socket, and the test then fails on the rx timeout.
https://virtuozzo.atlassian.net/browse/VSTOR-154851
2. 88af9fefed41 ("selftests/xsk: fix number of Tx frags in invalid
packet"), the other patch of the same upstream series. It only
matters for TOO_MANY_FRAGS in zero-copy mode with an odd
xdp_zc_max_segs, so it is needed only if the suite runs on a NIC
in ZC mode.
https://virtuozzo.atlassian.net/browse/VSTOR-154852
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list