]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Stop using bpf_map__def() API
authorChristy Lee <christylee@fb.com>
Sat, 8 Jan 2022 00:42:17 +0000 (16:42 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 13 Jan 2022 01:01:38 +0000 (17:01 -0800)
commita4a32112b3c388a020b8ed1974e45654efc38f63
treea9ba6d75c623a1e0d31dc0b395405dc2164c8e16
parent7c90d5b0c53020c55e8362ff9eaa2e3a33f0956d
selftests/bpf: Stop using bpf_map__def() API

libbpf bpf_map__def() API is being deprecated, replace selftests/bpf's
usage with the appropriate getters and setters.

Signed-off-by: Christy Lee <christylee@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220108004218.355761-5-christylee@fb.com
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
tools/testing/selftests/bpf/prog_tests/global_data.c
tools/testing/selftests/bpf/prog_tests/global_data_init.c
tools/testing/selftests/bpf/prog_tests/sockmap_listen.c
tools/testing/selftests/bpf/prog_tests/tailcalls.c