aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
diff options
context:
space:
mode:
authorLorenz Bauer <[email protected]>2020-09-09 16:27:10 +0000
committerAlexei Starovoitov <[email protected]>2020-09-10 19:31:55 +0000
commit654785a1afe1b1428106c322c7ea650e3f8d29e9 (patch)
treeee628a555cfd8b69b848cf8516bc647b48bbdff2 /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
parenttools: bpftool: Include common options from separate file (diff)
downloadkernel-654785a1afe1b1428106c322c7ea650e3f8d29e9.tar.gz
kernel-654785a1afe1b1428106c322c7ea650e3f8d29e9.zip
net: sockmap: Remove unnecessary sk_fullsock checks
The lookup paths for sockmap and sockhash currently include a check that returns NULL if the socket we just found is not a full socket. However, this check is not necessary. On insertion we ensure that we have a full socket (caveat around sock_ops), so request sockets are not a problem. Time-wait sockets are allocated separate from the original socket and then fed into the hashdance. They don't affect the sockets already stored in the sockmap. Suggested-by: Jakub Sitnicki <[email protected]> Signed-off-by: Lorenz Bauer <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions