path: root/samples/bpf/xdp_redirect_map_user.c
diff options
authorJakub Kicinski <>2018-05-14 22:35:02 -0700
committerAlexei Starovoitov <>2018-05-14 22:52:10 -0700
commit2bf3e2ef425bc2a164f10b554b7db6a8b4090ef4 (patch)
tree2a78c9c06062bbc0a7ea392357e49085431ab761 /samples/bpf/xdp_redirect_map_user.c
parentfb40c9ddd66b9c9bb811bbee125b3cb3ba1faee7 (diff)
samples: bpf: include bpf/bpf.h instead of local libbpf.h
There are two files in the tree called libbpf.h which is becoming problematic. Most samples don't actually need the local libbpf.h they simply include it to get to bpf/bpf.h. Include bpf/bpf.h directly instead. Signed-off-by: Jakub Kicinski <> Acked-by: Jesper Dangaard Brouer <> Signed-off-by: Alexei Starovoitov <>
Diffstat (limited to 'samples/bpf/xdp_redirect_map_user.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/xdp_redirect_map_user.c b/samples/bpf/xdp_redirect_map_user.c
index 7eae07d7293e..4445e76854b5 100644
--- a/samples/bpf/xdp_redirect_map_user.c
+++ b/samples/bpf/xdp_redirect_map_user.c
@@ -24,7 +24,7 @@
#include "bpf_load.h"
#include "bpf_util.h"
-#include "libbpf.h"
+#include <bpf/bpf.h>
static int ifindex_in;
static int ifindex_out;