diff options
author | Magnus Karlsson <magnus.karlsson@intel.com> | 2019-11-07 20:47:36 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-11-11 06:30:45 +0300 |
commit | cbf07409d0c2afad7bb54be039490bffad8bc737 (patch) | |
tree | 133661eb096da2d2853d5900f0aacb9850879ad4 /samples/bpf/xdpsock_kern.c | |
parent | 472aeb386eda3b73bbd38a2ec8c928708f77d7ee (diff) | |
download | linux-cbf07409d0c2afad7bb54be039490bffad8bc737.tar.xz |
libbpf: Support XDP_SHARED_UMEM with external XDP program
Add support in libbpf to create multiple sockets that share a single
umem. Note that an external XDP program need to be supplied that
routes the incoming traffic to the desired sockets. So you need to
supply the libbpf_flag XSK_LIBBPF_FLAGS__INHIBIT_PROG_LOAD and load
your own XDP program.
Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Tested-by: William Tu <u9012063@gmail.com>
Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Link: https://lore.kernel.org/bpf/1573148860-30254-2-git-send-email-magnus.karlsson@intel.com
Diffstat (limited to 'samples/bpf/xdpsock_kern.c')
0 files changed, 0 insertions, 0 deletions