selftests/bpf: Extend test for sockmap update with same
authorMichal Luczaj <mhal@rbox.co>
Mon, 2 Dec 2024 11:29:24 +0000 (12:29 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 10 Dec 2024 16:38:55 +0000 (17:38 +0100)
commit11d5245f608f8ac01c97b93f31497cef7b96e457
treecc8e6bf1f27c33221ab3b89b2352f90f6cfff134
parented1fc5d76b81a4d681211333c026202cad4d5649
selftests/bpf: Extend test for sockmap update with same

Verify that the sockmap link was not severed, and socket's entry is indeed
removed from the map when the corresponding descriptor gets closed.

Signed-off-by: Michal Luczaj <mhal@rbox.co>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20241202-sockmap-replace-v1-2-1e88579e7bd5@rbox.co
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c