Skip to content

Fix some issues for selftest test_xdp_redirect_multi.sh

Hangbin Liu bpf linux-kselftest netdev 1 version Applied

Status from this message: Applied, thanks, been fixing up a small merge conflict in the last one due to

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4selftests/bpf/xdp_redirect_multi: put the logs to tmp foldertools/testing/selftests/bpf/test_xdp_redirect_multi.sh+18 -170 replies
2/4selftests/bpf/xdp_redirect_multi: use arping to accurate the arp numbertools/testing/selftests/bpf/test_xdp_redirect_multi.sh+4 -40 replies
3/4selftests/bpf/xdp_redirect_multi: give tcpdump a chance to terminate cleanlytools/testing/selftests/bpf/test_xdp_redirect_multi.sh+2 -20 replies
4/4selftests/bpf/xdp_redirect_multi: limit the tests in netnstools/testing/selftests/bpf/test_xdp_redirect_multi.sh tools/testing/selftests/bpf/xdp_redirect_multi.c+17 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf 0/4] Fix some issues for selftest test_xdp_redirect_multi.sh

Jiri reported some issues in test_xdp_redirect_multi.sh. Like the test logs not cleaned after testing. The tcpdump not terminated cleanly. arp number count may have false positive. And the most important, after creating/deleting a lot interfaces, the interface index may exceed the DEVMAP max entry and cause program xdp_redirect_multi exec failed.

This patch set fix all these issues.

Hangbin Liu (4):
selftests/bpf/xdp_redirect_multi: put the logs to tmp folder selftests/bpf/xdp_redirect_multi: use arping to accurate the arp
number
selftests/bpf/xdp_redirect_multi: give tcpdump a chance to terminate
cleanly
selftests/bpf/xdp_redirect_multi: limit the tests in netns

 .../selftests/bpf/test_xdp_redirect_multi.sh  | 62 +++++++++++--------
 .../selftests/bpf/xdp_redirect_multi.c        |  4 +-
 2 files changed, 37 insertions(+), 29 deletions(-)
Signature · 1 line
2.31.1