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
This commit is contained in:
Christy Lee 2022-01-07 16:42:17 -08:00 • committed by Andrii Nakryiko
commit 8d6fabf165
5 changed files with 26 additions and 28 deletions