selftests/bpf: Drop useless arguments of do_test in bpf_tcp_ca
authorGeliang Tang <tanggeliang@kylinos.cn>
Thu, 30 May 2024 07:41:12 +0000 (15:41 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 6 Jun 2024 21:04:06 +0000 (23:04 +0200)
commitf85af9d955ac9601174e1c64f4b3308c1cae4a7e
treefbd6222b981d77cca537fcc3447165c2cf68ae19
parentcd984b2ed62423eb3daceacb21d651115a612af6
selftests/bpf: Drop useless arguments of do_test in bpf_tcp_ca

bpf_map_lookup_elem() has been removed from do_test(), it makes the
sk_stg_map argument of do_test() useless. In addition, two exactly the
same opts are passed in all the places where do_test() is invoked, so
cli_opts argument can be dropped too.

This patch drops these two useless arguments of do_test() in bpf_tcp_ca.c.

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/7056eab111d78a05bce29d2821228dc93f240de4.1717054461.git.tanggeliang@kylinos.cn
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c