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 0613f3bb8b5e4e1ef765a515871428465f487624..32dd731e9070caa821783b0944903e14c51d16a7 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 6f800381f924075ba9d9ed083b362cbce192783a..bca5e6839ac489f90f915187b6eee31999071060 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 eea2741102673c6bce50b408cb517e332b381fe6..07ad457f33709b2fcaee767a73d30eca874d11fe 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 9ac6f6a268db2c8330b37361adcf61262ac52e2e..a50971c6cf4a5d4f8efdae804199c51142ca8170 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 13daa3746064afa2329ebc2497316cfd329b3ac0..c72083885b6d717dc6bcba5cbe19d1e588b2bd78 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);