aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2021-12-01 15:28:16 -0800
committerAndrii Nakryiko <andrii.nakryiko@gmail.com>2021-12-10 14:03:13 -0800
commitac1c007607f288d5368e3d3f4e4bcaca0510d759 (patch)
tree5fc6df95dfc7e5be5b77dc66871591e70e39af7e /src
parent01b2b45e8df3e65f210ca0205a7325233aecb002 (diff)
downloadlibbpf-ac1c007607f288d5368e3d3f4e4bcaca0510d759.tar.gz
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 'src')
-rw-r--r--src/bpf.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bpf.h b/src/bpf.h
index 70b6f44..f79e5fb 100644
--- a/src/bpf.h
+++ b/src/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