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

This patch uses the new helper connect_to_addr_str() in sk_lookup.c to
create the client socket and connect to the server, instead of using local
defined function make_client(). This local function can be dropped then.

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Link: https://lore.kernel.org/r/058199d7ab46802249dae066ca22c98f6be508ee.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