diff options
author | Martin KaFai Lau <kafai@fb.com> | 2018-05-22 17:57:21 -0400 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-05-23 06:03:32 -0400 |
commit | 9b2cf328b2eccf761537a06bef914d2a0700fba7 (patch) | |
tree | 136dc187e3f62e0becbe0a5c8271e02fe522696d /kernel/bpf/arraymap.c | |
parent | aea2f7b8911617d7a8c23fb73d69e78764f91b58 (diff) |
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 'kernel/bpf/arraymap.c')
-rw-r--r-- | kernel/bpf/arraymap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/arraymap.c b/kernel/bpf/arraymap.c index 0fd8d8f1a398..544e58f5f642 100644 --- a/kernel/bpf/arraymap.c +++ b/kernel/bpf/arraymap.c | |||
@@ -352,7 +352,7 @@ static void array_map_seq_show_elem(struct bpf_map *map, void *key, | |||
352 | } | 352 | } |
353 | 353 | ||
354 | seq_printf(m, "%u: ", *(u32 *)key); | 354 | seq_printf(m, "%u: ", *(u32 *)key); |
355 | btf_type_seq_show(map->btf, map->btf_value_id, value, m); | 355 | btf_type_seq_show(map->btf, map->btf_value_type_id, value, m); |
356 | seq_puts(m, "\n"); | 356 | seq_puts(m, "\n"); |
357 | 357 | ||
358 | rcu_read_unlock(); | 358 | rcu_read_unlock(); |