aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorDaniel Borkmann <[email protected]>2019-05-13 23:18:55 +0000
committerAlexei Starovoitov <[email protected]>2019-05-14 17:47:29 +0000
commitc6110222c6f49ea68169f353565eb865488a8619 (patch)
tree181de3f33b1e298789b1827b0103d6304f532a86 /tools/bpf/bpftool/prog.c
parenttools/bpf: Sync kernel btf.h header (diff)
downloadkernel-c6110222c6f49ea68169f353565eb865488a8619.tar.gz
kernel-c6110222c6f49ea68169f353565eb865488a8619.zip
bpf: add map_lookup_elem_sys_only for lookups from syscall side
Add a callback map_lookup_elem_sys_only() that map implementations could use over map_lookup_elem() from system call side in case the map implementation needs to handle the latter differently than from the BPF data path. If map_lookup_elem_sys_only() is set, this will be preferred pick for map lookups out of user space. This hook is used in a follow-up fix for LRU map, but once development window opens, we can convert other map types from map_lookup_elem() (here, the one called upon BPF_MAP_LOOKUP_ELEM cmd is meant) over to use the callback to simplify and clean up the latter. Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Martin KaFai Lau <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions