Message ID | 20210727001252.1287673-4-jiang.wang@bytedance.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | BPF |
Headers | show |
Series | sockmap: add sockmap support for unix stream socket | expand |
Context | Check | Description |
---|---|---|
netdev/cover_letter | success | Link |
netdev/fixes_present | success | Link |
netdev/patch_count | success | Link |
netdev/tree_selection | success | Clearly marked for bpf-next |
netdev/subject_prefix | success | Link |
netdev/cc_maintainers | success | CCed 15 of 15 maintainers |
netdev/source_inline | success | Was 0 now: 0 |
netdev/verify_signedoff | success | Link |
netdev/module_param | success | Was 0 now: 0 |
netdev/build_32bit | fail | Errors and warnings before: 4 this patch: 4 |
netdev/kdoc | success | Errors and warnings before: 0 this patch: 0 |
netdev/verify_fixes | success | Link |
netdev/checkpatch | warning | WARNING: Unexpected content after email: 'Cong Wang <cong.wang@bytedance.com>.', should be: 'Cong Wang <cong.wang@bytedance.com>' |
netdev/build_allmodconfig_warn | fail | Errors and warnings before: 4 this patch: 4 |
netdev/header_inline | success | Link |
Jiang Wang wrote: > Add two tests for unix stream to unix stream redirection > in sockmap tests. > > Signed-off-by: Jiang Wang <jiang.wang@bytedance.com> > Reviewed-by: Cong Wang <cong.wang@bytedance.com>. > --- > tools/testing/selftests/bpf/prog_tests/sockmap_listen.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/testing/selftests/bpf/prog_tests/sockmap_listen.c b/tools/testing/selftests/bpf/prog_tests/sockmap_listen.c > index a9f1bf9d5..7a976d432 100644 > --- a/tools/testing/selftests/bpf/prog_tests/sockmap_listen.c > +++ b/tools/testing/selftests/bpf/prog_tests/sockmap_listen.c > @@ -2020,11 +2020,13 @@ void test_sockmap_listen(void) > run_tests(skel, skel->maps.sock_map, AF_INET); > run_tests(skel, skel->maps.sock_map, AF_INET6); > test_unix_redir(skel, skel->maps.sock_map, SOCK_DGRAM); > + test_unix_redir(skel, skel->maps.sock_map, SOCK_STREAM); > > skel->bss->test_sockmap = false; > run_tests(skel, skel->maps.sock_hash, AF_INET); > run_tests(skel, skel->maps.sock_hash, AF_INET6); > test_unix_redir(skel, skel->maps.sock_hash, SOCK_DGRAM); > + test_unix_redir(skel, skel->maps.sock_hash, SOCK_STREAM); > > test_sockmap_listen__destroy(skel); > } > -- > 2.20.1 > Acked-by: John Fastabend <john.fastabend@gmail.com>
diff --git a/tools/testing/selftests/bpf/prog_tests/sockmap_listen.c b/tools/testing/selftests/bpf/prog_tests/sockmap_listen.c index a9f1bf9d5..7a976d432 100644 --- a/tools/testing/selftests/bpf/prog_tests/sockmap_listen.c +++ b/tools/testing/selftests/bpf/prog_tests/sockmap_listen.c @@ -2020,11 +2020,13 @@ void test_sockmap_listen(void) run_tests(skel, skel->maps.sock_map, AF_INET); run_tests(skel, skel->maps.sock_map, AF_INET6); test_unix_redir(skel, skel->maps.sock_map, SOCK_DGRAM); + test_unix_redir(skel, skel->maps.sock_map, SOCK_STREAM); skel->bss->test_sockmap = false; run_tests(skel, skel->maps.sock_hash, AF_INET); run_tests(skel, skel->maps.sock_hash, AF_INET6); test_unix_redir(skel, skel->maps.sock_hash, SOCK_DGRAM); + test_unix_redir(skel, skel->maps.sock_hash, SOCK_STREAM); test_sockmap_listen__destroy(skel); }