]> git.ipfire.org Git - thirdparty/iproute2.git/commit
bpf: Remove use of bpf_create_map_xattr
authorDavid Ahern <dsahern@kernel.org>
Mon, 7 Feb 2022 01:00:32 +0000 (18:00 -0700)
committerDavid Ahern <dsahern@kernel.org>
Mon, 7 Mar 2022 15:52:08 +0000 (08:52 -0700)
commitd9977eafa719c029fba8c14de5b46dc1c851c68f
treefa551bc8fc6892f61d5f311602c96a4e6bf40fec
parentac4e0913beb117f9b1416ed18fef4283056cd659
bpf: Remove use of bpf_create_map_xattr

bpf_create_map_xattr is deprecated in v0.7 in favor of bpf_map_create.
bpf_map_create and its bpf_map_create_opts are not available across the
range of v0.1 and up versions of libbpf, so change create_map to use
the bpf syscall directly.

Signed-off-by: David Ahern <dsahern@kernel.org>
lib/bpf_libbpf.c