All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf 0/7] selftests/bpf: use temp netns for testing
@ 2022-01-25  8:17 Hangbin Liu
  2022-01-25  8:17 ` [PATCH bpf 1/7] selftests/bpf/test_xdp_redirect_multi: " Hangbin Liu
                   ` (7 more replies)
  0 siblings, 8 replies; 15+ messages in thread
From: Hangbin Liu @ 2022-01-25  8:17 UTC (permalink / raw)
  To: netdev
  Cc: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko, bpf,
	Jakub Kicinski, David S . Miller, Mathieu Xhonneux, Lorenz Bauer,
	William Tu, Toshiaki Makita, Jesper Dangaard Brouer, Hangbin Liu

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(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-01-28  2:55 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-25  8:17 [PATCH bpf 0/7] selftests/bpf: use temp netns for testing Hangbin Liu
2022-01-25  8:17 ` [PATCH bpf 1/7] selftests/bpf/test_xdp_redirect_multi: " Hangbin Liu
2022-01-27  5:24   ` William Tu
2022-01-27  5:34   ` John Fastabend
2022-01-27  6:40     ` Hangbin Liu
2022-01-28  2:53       ` John Fastabend
2022-01-25  8:17 ` [PATCH bpf 2/7] selftests/bpf/test_xdp_veth: " Hangbin Liu
2022-01-25  8:17 ` [PATCH bpf 3/7] selftests/bpf/test_xdp_vlan: " Hangbin Liu
2022-01-25  8:17 ` [PATCH bpf 4/7] selftests/bpf/test_lwt_seg6local: " Hangbin Liu
2022-01-25  8:17 ` [PATCH bpf 5/7] selftests/bpf/test_tcp_check_syncookie: " Hangbin Liu
2022-01-26  9:32   ` Lorenz Bauer
2022-01-25  8:17 ` [PATCH bpf 6/7] selftests/bpf/test_xdp_meta: " Hangbin Liu
2022-01-25  8:17 ` [PATCH bpf 7/7] selftests/bpf/test_xdp_redirect: " Hangbin Liu
2022-01-27  5:26   ` William Tu
2022-01-28  2:54 ` [PATCH bpf 0/7] selftests/bpf: " John Fastabend

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.