diff options
author | Martin KaFai Lau | 2017-06-27 23:08:34 -0700 |
---|---|---|
committer | David S. Miller | 2017-06-29 13:13:25 -0400 |
commit | 14dc6f04f49dc12614d7e90928b495b8d73cd471 (patch) | |
tree | 159ebddef04be2ae417c503ab46593be570c680f /samples | |
parent | 77b0d3617738e532bae683bf9d88ea35fff223e5 (diff) |
bpf: Add syscall lookup support for fd array and htab
This patch allows userspace to do BPF_MAP_LOOKUP_ELEM on
BPF_MAP_TYPE_PROG_ARRAY,
BPF_MAP_TYPE_ARRAY_OF_MAPS and
BPF_MAP_TYPE_HASH_OF_MAPS.
The lookup returns a prog-id or map-id to the userspace.
The userspace can then use the BPF_PROG_GET_FD_BY_ID
or BPF_MAP_GET_FD_BY_ID to get a fd.
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions