]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add a test case for udp sockmap
authorCong Wang <cong.wang@bytedance.com>
Wed, 31 Mar 2021 02:32:36 +0000 (19:32 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 1 Apr 2021 17:56:14 +0000 (10:56 -0700)
commit45297710da13f986a17b321ec6e0f0622252cf80
tree6722b1ed1b638250e04dcfe1a1a18def2d9aab26
parent25b51dd25f142dcf0a4d80e9eebe023bd36b3b4a
selftests/bpf: Add a test case for udp sockmap

Add a test case to ensure redirection between two UDP sockets work.

Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210331023237.41094-16-xiyou.wangcong@gmail.com
tools/testing/selftests/bpf/prog_tests/sockmap_listen.c
tools/testing/selftests/bpf/progs/test_sockmap_listen.c