diff options
author | Magnus Karlsson <magnus.karlsson@intel.com> | 2019-11-07 18:47:37 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-11-11 04:30:45 +0100 |
commit | 2e5d72c15f0dc713c203464c5c76eb4ec285f598 (patch) | |
tree | f094baeb232a60c362d051de71b827a7d2309bdb /samples/bpf/Makefile | |
parent | libbpf: Support XDP_SHARED_UMEM with external XDP program (diff) | |
download | linux-2e5d72c15f0dc713c203464c5c76eb4ec285f598.tar.xz linux-2e5d72c15f0dc713c203464c5c76eb4ec285f598.zip |
samples/bpf: Add XDP_SHARED_UMEM support to xdpsock
Add support for the XDP_SHARED_UMEM mode to the xdpsock sample
application. As libbpf does not have a built in XDP program for this
mode, we use an explicitly loaded XDP program. This also serves as an
example on how to write your own XDP program that can route to an
AF_XDP socket.
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-3-git-send-email-magnus.karlsson@intel.com
Diffstat (limited to 'samples/bpf/Makefile')
-rw-r--r-- | samples/bpf/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 4df11ddb9c75..8a9af3ab7769 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile @@ -167,6 +167,7 @@ always += xdp_sample_pkts_kern.o always += ibumad_kern.o always += hbm_out_kern.o always += hbm_edt_kern.o +always += xdpsock_kern.o ifeq ($(ARCH), arm) # Strip all except -D__LINUX_ARM_ARCH__ option needed to handle linux |