summaryrefslogtreecommitdiffstats
path: root/include/linux/bpf.h
diff options
context:
space:
mode:
authorMartin KaFai Lau2018-05-22 23:57:21 +0200
committerDaniel Borkmann2018-05-23 12:03:32 +0200
commit9b2cf328b2eccf761537a06bef914d2a0700fba7 (patch)
tree136dc187e3f62e0becbe0a5c8271e02fe522696d /include/linux/bpf.h
parentbpf: btf: Remove unused bits from uapi/linux/btf.h (diff)
downloadkernel-qcow2-linux-9b2cf328b2eccf761537a06bef914d2a0700fba7.tar.gz
kernel-qcow2-linux-9b2cf328b2eccf761537a06bef914d2a0700fba7.tar.xz
kernel-qcow2-linux-9b2cf328b2eccf761537a06bef914d2a0700fba7.zip
bpf: btf: Rename btf_key_id and btf_value_id in bpf_map_info
In "struct bpf_map_info", the name "btf_id", "btf_key_id" and "btf_value_id" could cause confusion because the "id" of "btf_id" means the BPF obj id given to the BTF object while "btf_key_id" and "btf_value_id" means the BTF type id within that BTF object. To make it clear, btf_key_id and btf_value_id are renamed to btf_key_type_id and btf_value_type_id. Suggested-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: Martin KaFai Lau <kafai@fb.com> Acked-by: Yonghong Song <yhs@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/linux/bpf.h')
-rw-r--r--include/linux/bpf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/bpf.h b/include/linux/bpf.h
index f6fe3c719ca8..1795eeee846c 100644
--- a/include/linux/bpf.h
+++ b/include/linux/bpf.h
@@ -69,8 +69,8 @@ struct bpf_map {
u32 pages;
u32 id;
int numa_node;
- u32 btf_key_id;
- u32 btf_value_id;
+ u32 btf_key_type_id;
+ u32 btf_value_type_id;
struct btf *btf;
bool unpriv_array;
/* 55 bytes hole */