]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, selftests: Fix test_maps now that sockmap supports UDP
authorJohn Fastabend <john.fastabend@gmail.com>
Tue, 20 Jul 2021 18:48:32 +0000 (11:48 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 20 Jul 2021 20:18:51 +0000 (13:18 -0700)
commitd0f7b26f68ff051f03f0d6265e7caabb050b117a
tree1e7d34c90b3dc00fe529a9a1027b3683adcc05a4
parent1ba0fc0e14b99a5868b6b7fc15c9f7788a06aecb
bpf, selftests: Fix test_maps now that sockmap supports UDP

UDP socket support was added recently so testing UDP insert failure is no
longer correct and causes test_maps failure. The fix is easy though, we
simply need to test that UDP is correctly added instead of blocked.

Fixes: be8332d72f297 ("sock_map: Update sock type checks for UDP")
Reported-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210720184832.452430-1-john.fastabend@gmail.com
tools/testing/selftests/bpf/test_maps.c