selftests/bpf: Remove serial from tests using {open,close}_netns
authorMartin KaFai Lau <martin.lau@kernel.org>
Tue, 29 Nov 2022 07:08:59 +0000 (23:08 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 30 Nov 2022 21:47:43 +0000 (22:47 +0100)
After removing the mount/umount dance from {open,close}_netns()
in the pervious patch, "serial_" can be removed from
the tests using {open,close}_netns().

Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/20221129070900.3142427-7-martin.lau@linux.dev
tools/testing/selftests/bpf/prog_tests/empty_skb.c
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
tools/testing/selftests/bpf/prog_tests/test_tunnel.c
tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c
tools/testing/selftests/bpf/prog_tests/xdp_synproxy.c

index 0613f3b..32dd731 100644 (file)
@@ -9,7 +9,7 @@
                goto out; \
 })
 
-void serial_test_empty_skb(void)
+void test_empty_skb(void)
 {
        LIBBPF_OPTS(bpf_test_run_opts, tattr);
        struct empty_skb *bpf_obj = NULL;
index 6f80038..bca5e68 100644 (file)
@@ -1138,7 +1138,7 @@ static void *test_tc_redirect_run_tests(void *arg)
        return NULL;
 }
 
-void serial_test_tc_redirect(void)
+void test_tc_redirect(void)
 {
        pthread_t test_thread;
        int err;
index eea2741..07ad457 100644 (file)
@@ -421,7 +421,7 @@ static void *test_tunnel_run_tests(void *arg)
        return NULL;
 }
 
-void serial_test_tunnel(void)
+void test_tunnel(void)
 {
        pthread_t test_thread;
        int err;
index 9ac6f6a..a50971c 100644 (file)
@@ -85,7 +85,7 @@ static void test_max_pkt_size(int fd)
 }
 
 #define NUM_PKTS 10000
-void serial_test_xdp_do_redirect(void)
+void test_xdp_do_redirect(void)
 {
        int err, xdp_prog_fd, tc_prog_fd, ifindex_src, ifindex_dst;
        char data[sizeof(pkt_udp) + sizeof(__u32)];
index 13daa37..c720838 100644 (file)
@@ -174,7 +174,7 @@ out:
        system("ip netns del synproxy");
 }
 
-void serial_test_xdp_synproxy(void)
+void test_xdp_synproxy(void)
 {
        if (test__start_subtest("xdp"))
                test_synproxy(true);