libbpf: Use __u32 fields in bpf_map_create_opts
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 1 Dec 2021 23:28:16 +0000 (15:28 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 2 Dec 2021 23:23:08 +0000 (15:23 -0800)
commit74d9807023573ba2d82ec3f505f6aa0c7076918c
treef9d83d2adfa22af997fefeb95fc810ec52187bb7
parent8b4ff5f8bb126fa8ee6918f4854748277609cf68
libbpf: Use __u32 fields in bpf_map_create_opts

Corresponding Linux UAPI struct uses __u32, not int, so keep it
consistent.

Fixes: 992c4225419a ("libbpf: Unify low-level map creation APIs w/ new bpf_map_create()")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211201232824.3166325-2-andrii@kernel.org
tools/lib/bpf/bpf.h