diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2018-07-25 06:57:56 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-07-25 07:00:27 +0200 |
commit | 684cce1c31d2c0c9383cbcca200b9cf3b1f1d21d (patch) | |
tree | c19295299de7d53fcacffb42ea67b3c00206aeab /arch | |
parent | 6283fa38dc8744dc7c2bd2a03bb0478fe42f79fa (diff) | |
parent | 38d5d3b3d5dbc0e0bb51fa6f7559d0d5a27916f6 (diff) | |
download | linux-684cce1c31d2c0c9383cbcca200b9cf3b1f1d21d.tar.bz2 |
Merge branch 'bpf-annotate-kv-pair'
Martin KaFai Lau says:
====================
The series allows the BPF loader to figure out the btf_key_id
and btf_value_id from a map's name by using BPF_ANNOTATE_KV_PAIR()
similarly as in iproute2 commit f823f36012fb ("bpf: implement
btf handling and map annotation").
It also removes the old 'typedef' way which requires two separate
typedefs (one for the key and one for the value).
By doing this, iproute2 and libbpf have one consistent way to
figure out the btf_key_type_id and btf_value_type_id for a map.
The first two patches are some prep/cleanup works. The last patch
introduces BPF_ANNOTATE_KV_PAIR.
v3:
- Replace some more *int*_t and u* usages with the
equivalent __[su]* in btf.c
v2:
- Fix the incorrect '&&' check on container_type
in bpf_map_find_btf_info().
- Expose the existing static btf_type_by_id() instead of
creating a new one.
====================
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions