]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: selftest: Use static globals in tcp_hdr_options and btf_skc_cls_ingress
authorMartin KaFai Lau <kafai@fb.com>
Fri, 6 Nov 2020 22:54:02 +0000 (14:54 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 10 Nov 2020 00:18:36 +0000 (16:18 -0800)
commit279ceb6cecc501ffea9d76f7d88c7bfdc8894c3f
treef64859147386fbab5d130b077657dcc0cb5faad9
parent8b140ecaaa4e0d8118c5f0cadb2803dc79a35529
bpf: selftest: Use static globals in tcp_hdr_options and btf_skc_cls_ingress

Some globals in the tcp_hdr_options test and btf_skc_cls_ingress test
are not using static scope.  This patch fixes it.

Targeting bpf-next branch as an improvement since it currently does not
break the build.

Fixes: e98593f2fe1c ("bpf: selftests: Tcp header options")
Fixes: 3261b8bd461e ("bpf: selftest: Add test_btf_skc_cls_ingress")
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20201106225402.4135741-1-kafai@fb.com
tools/testing/selftests/bpf/prog_tests/btf_skc_cls_ingress.c
tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c