Skip to content

selftests: xsk: Make packet validation more robust

Felix Maurer requested to merge fmaurer-rh/centos-stream-9:bz2006330 into main

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2006330 Tested: BPF selftest test_xsk now passes even when generating unexpected traffic on the veth pair. Conflicts: The patches are selectively taken from a much larger patch set to just fix the instable test.

The BPF selftest test_xsk failed when a specific unexpected traffic occurred on the veth pair used in the test. To fix this, the changes to the packet validation logic are backported.

During the test, there are still errors being logged, and at the end, there are test fails counted for the invalid tests. However, the actual tests pass and are reported as passed and the whole test passes as well.

v2: Added one additional change to make the test more robust

Signed-off-by: Felix Maurer fmaurer@redhat.com

Edited by Felix Maurer

Merge request reports