diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2021-12-02 02:28:16 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-12-03 02:23:08 +0300 |
commit | 74d9807023573ba2d82ec3f505f6aa0c7076918c (patch) | |
tree | f9d83d2adfa22af997fefeb95fc810ec52187bb7 /tools/lib/bpf/bpf.h | |
parent | 8b4ff5f8bb126fa8ee6918f4854748277609cf68 (diff) | |
download | linux-74d9807023573ba2d82ec3f505f6aa0c7076918c.tar.xz |
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
Diffstat (limited to 'tools/lib/bpf/bpf.h')
-rw-r--r-- | tools/lib/bpf/bpf.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/lib/bpf/bpf.h b/tools/lib/bpf/bpf.h index 70b6f44fc8b0..f79e5fbcf1c1 100644 --- a/tools/lib/bpf/bpf.h +++ b/tools/lib/bpf/bpf.h @@ -43,12 +43,12 @@ struct bpf_map_create_opts { __u32 btf_value_type_id; __u32 btf_vmlinux_value_type_id; - int inner_map_fd; - int map_flags; + __u32 inner_map_fd; + __u32 map_flags; __u64 map_extra; - int numa_node; - int map_ifindex; + __u32 numa_node; + __u32 map_ifindex; }; #define bpf_map_create_opts__last_field map_ifindex |