bpf: sockmap, add tests for proto updates many to single map
authorJohn Fastabend <john.fastabend@gmail.com>
Thu, 21 Dec 2023 23:23:25 +0000 (15:23 -0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 4 Jan 2024 00:50:19 +0000 (16:50 -0800)
commit8c1b382a555adcd2008ae964047a35b739dfaf24
tree8f8dcf31c600ed2677b100f02a4953df5d528c60
parent7865dfb1eb941ddd25802a9e13b6ff5f3f4dc02f
bpf: sockmap, add tests for proto updates many to single map

Add test with a single map where each socket is inserted multiple
times. Test protocols: TCP, UDP, stream af_unix and dgram af_unix.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Link: https://lore.kernel.org/r/20231221232327.43678-4-john.fastabend@gmail.com
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c