diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2018-11-21 23:33:22 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-11-21 23:33:23 +0100 |
commit | e4b0c94bd24cf8c992919233a2a4e350cd15cde2 (patch) | |
tree | d13cf3862141d170631ec5371b3b5982000b6866 /kernel/bpf/lpm_trie.c | |
parent | 5b32a23e1d879b78ee72144311314eccf7581bf4 (diff) | |
parent | b1957c92eba5acad7d8a0a6f968561e08714e978 (diff) | |
download | lwn-e4b0c94bd24cf8c992919233a2a4e350cd15cde2.tar.gz lwn-e4b0c94bd24cf8c992919233a2a4e350cd15cde2.zip |
Merge branch 'bpf-libbpf-mapinmap'
Nikita V. Shirokov says:
====================
In this patch series I'm adding a helper for libbpf which would allow
it to load map-in-map(BPF_MAP_TYPE_ARRAY_OF_MAPS and BPF_MAP_TYPE_HASH_OF_MAPS).
First patch contains new helper + explains proposed workflow second patch
contains tests which also could be used as example usage.
v4->v5:
- naming: renamed everything to map_in_map instead of mapinmap
- start to return nonzero val if set_inner_map_fd failed
v3->v4:
- renamed helper to set_inner_map_fd
- now we set this value only if it haven't
been set before and only for (array|hash) of maps
v2->v3:
- fixing typo in patch description
- initializing inner_map_fd to -1 by default
v1->v2:
- addressing nits
- removing const identifier from fd in new helper
- starting to check return val for bpf_map_update_elem
====================
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'kernel/bpf/lpm_trie.c')
0 files changed, 0 insertions, 0 deletions