Skip to content

selftests/bpf: use temp netns for testing

Hangbin Liu bpf netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7selftests/bpf/test_xdp_redirect_multi: use temp netns for testingtools/testing/selftests/bpf/test_xdp_redirect_multi.sh+31 -294 replies
2/7selftests/bpf/test_xdp_veth: use temp netns for testingtools/testing/selftests/bpf/test_xdp_veth.sh+21 -180 replies
3/7selftests/bpf/test_xdp_vlan: use temp netns for testingtools/testing/selftests/bpf/test_xdp_vlan.sh+34 -320 replies
4/7selftests/bpf/test_lwt_seg6local: use temp netns for testingtools/testing/selftests/bpf/test_lwt_seg6local.sh+88 -820 replies
5/7selftests/bpf/test_tcp_check_syncookie: use temp netns for testingtools/testing/selftests/bpf/test_tcp_check_syncookie.sh+3 -21 reply
6/7selftests/bpf/test_xdp_meta: use temp netns for testingtools/testing/selftests/bpf/test_xdp_meta.sh+20 -180 replies
7/7selftests/bpf/test_xdp_redirect: use temp netns for testingtools/testing/selftests/bpf/test_xdp_redirect.sh+16 -141 reply

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLorenz BauerWilliam TuJohn Fastabend
SeriesA-b
1/7A-b
2/7
3/7
4/7
5/7A-b
6/7
7/7A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH bpf 0/7] selftests/bpf: use temp netns for testing

There are some bpf tests using hard code netns name like ns0, ns1, etc. This kind of ns name is easily used by other tests or system. If there is already a such netns, all the related tests will failed. So let's use temp netns name for testing.

The first patch not only change to temp netns. But also fixed an interface index issue. So I add fixes tag. For the later patches, I think that should be an update instead of fixes, so the fixes tag is not added.

Hangbin Liu (7):
selftests/bpf/test_xdp_redirect_multi: use temp netns for testing selftests/bpf/test_xdp_veth: use temp netns for testing selftests/bpf/test_xdp_vlan: use temp netns for testing selftests/bpf/test_lwt_seg6local: use temp netns for testing selftests/bpf/test_tcp_check_syncookie: use temp netns for testing selftests/bpf/test_xdp_meta: use temp netns for testing selftests/bpf/test_xdp_redirect: use temp netns for testing

 .../selftests/bpf/test_lwt_seg6local.sh       | 170 +++++++++---------
 .../selftests/bpf/test_tcp_check_syncookie.sh |   5 +-
 tools/testing/selftests/bpf/test_xdp_meta.sh  |  38 ++--
 .../selftests/bpf/test_xdp_redirect.sh        |  30 ++--
 .../selftests/bpf/test_xdp_redirect_multi.sh  |  60 ++++---
 tools/testing/selftests/bpf/test_xdp_veth.sh  |  39 ++--
 tools/testing/selftests/bpf/test_xdp_vlan.sh  |  66 +++----
 7 files changed, 213 insertions(+), 195 deletions(-)
Signature · 1 line
2.31.1