]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Drop make_socket in sk_lookup
authorGeliang Tang <tanggeliang@kylinos.cn>
Sat, 20 Jul 2024 11:40:04 +0000 (19:40 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 29 Jul 2024 22:05:03 +0000 (15:05 -0700)
commit01c2f776ed372155f9e80bd787324f26601914de
treeaa93aacdaf3362c00307223ed3c568829a623891
parentaf994e31b75e30941ef32796d0aa8510db00b32a
selftests/bpf: Drop make_socket in sk_lookup

This patch uses the public network helers client_socket() + make_sockaddr()
in sk_lookup.c to create the client socket, set the timeout sockopts, and
make the connecting address. The local defined function make_socket()
can be dropped then.

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Link: https://lore.kernel.org/r/588771977ac48c27f73526d8421a84b91d7cf218.1721475357.git.tanggeliang@kylinos.cn
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
tools/testing/selftests/bpf/prog_tests/sk_lookup.c