diff options
author | Martin KaFai Lau | 2017-06-28 08:08:34 +0200 |
---|---|---|
committer | David S. Miller | 2017-06-29 19:13:25 +0200 |
commit | 14dc6f04f49dc12614d7e90928b495b8d73cd471 (patch) | |
tree | 159ebddef04be2ae417c503ab46593be570c680f /samples/bpf/sockex3_user.c | |
parent | net: stmmac: Add additional registers for dwmac1000_dma ethtool (diff) | |
download | kernel-qcow2-linux-14dc6f04f49dc12614d7e90928b495b8d73cd471.tar.gz kernel-qcow2-linux-14dc6f04f49dc12614d7e90928b495b8d73cd471.tar.xz kernel-qcow2-linux-14dc6f04f49dc12614d7e90928b495b8d73cd471.zip |
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/bpf/sockex3_user.c')
0 files changed, 0 insertions, 0 deletions