This patchset adds BPF_MAP_LOOKUP_ELEM syscall support for
BPF_MAP_TYPE_PROG_ARRAY,
BPF_MAP_TYPE_ARRAY_OF_MAPS and
BPF_MAP_TYPE_HASH_OF_MAPS

Martin KaFai Lau (2):
  bpf: Add syscall lookup support for fd array and htab
  bpf: Add test for syscall on fd array/htab lookup

 include/linux/bpf.h                |  3 +++
 kernel/bpf/arraymap.c              | 27 +++++++++++++++++++++++++++
 kernel/bpf/hashtab.c               | 21 +++++++++++++++++++++
 kernel/bpf/map_in_map.c            |  5 +++++
 kernel/bpf/map_in_map.h            |  1 +
 kernel/bpf/syscall.c               | 16 +++++++++++++---
 samples/bpf/sockex3_user.c         | 15 ++++++++++++++-
 samples/bpf/test_map_in_map_user.c | 17 +++++++++++++++++
 8 files changed, 101 insertions(+), 4 deletions(-)

-- 
2.9.3

Reply via email to