diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2018-05-15 07:35:03 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-05-15 07:52:10 +0200 |
commit | 8d93045077aeede62127b6d6663bfdd31f6240da (patch) | |
tree | 96f4a0e5f3827ff3d849bb5047cd6aae1bdceab6 /samples/bpf/test_cgrp2_sock2.c | |
parent | samples: bpf: include bpf/bpf.h instead of local libbpf.h (diff) | |
download | linux-8d93045077aeede62127b6d6663bfdd31f6240da.tar.xz linux-8d93045077aeede62127b6d6663bfdd31f6240da.zip |
samples: bpf: rename libbpf.h to bpf_insn.h
The libbpf.h file in samples is clashing with libbpf's header.
Since it only includes a subset of filter.h instruction helpers
rename it to bpf_insn.h. Drop the unnecessary include of bpf/bpf.h.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/bpf/test_cgrp2_sock2.c')
-rw-r--r-- | samples/bpf/test_cgrp2_sock2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/bpf/test_cgrp2_sock2.c b/samples/bpf/test_cgrp2_sock2.c index e53f1f6f0867..3b5be2364975 100644 --- a/samples/bpf/test_cgrp2_sock2.c +++ b/samples/bpf/test_cgrp2_sock2.c @@ -19,8 +19,9 @@ #include <fcntl.h> #include <net/if.h> #include <linux/bpf.h> +#include <bpf/bpf.h> -#include "libbpf.h" +#include "bpf_insn.h" #include "bpf_load.h" static int usage(const char *argv0) |