aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/bpf/libbpf.h')
-rw-r--r--tools/lib/bpf/libbpf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf.h b/tools/lib/bpf/libbpf.h
index 6e20003109e0..f85906533cdd 100644
--- a/tools/lib/bpf/libbpf.h
+++ b/tools/lib/bpf/libbpf.h
@@ -1,3 +1,5 @@
1/* SPDX-License-Identifier: LGPL-2.1 */
2
1/* 3/*
2 * Common eBPF ELF object loading operations. 4 * Common eBPF ELF object loading operations.
3 * 5 *
@@ -42,6 +44,8 @@ enum libbpf_errno {
42 LIBBPF_ERRNO__PROG2BIG, /* Program too big */ 44 LIBBPF_ERRNO__PROG2BIG, /* Program too big */
43 LIBBPF_ERRNO__KVER, /* Incorrect kernel version */ 45 LIBBPF_ERRNO__KVER, /* Incorrect kernel version */
44 LIBBPF_ERRNO__PROGTYPE, /* Kernel doesn't support this program type */ 46 LIBBPF_ERRNO__PROGTYPE, /* Kernel doesn't support this program type */
47 LIBBPF_ERRNO__WRNGPID, /* Wrong pid in netlink message */
48 LIBBPF_ERRNO__INVSEQ, /* Invalid netlink sequence */
45 __LIBBPF_ERRNO__END, 49 __LIBBPF_ERRNO__END,
46}; 50};
47 51
@@ -246,4 +250,6 @@ long libbpf_get_error(const void *ptr);
246 250
247int bpf_prog_load(const char *file, enum bpf_prog_type type, 251int bpf_prog_load(const char *file, enum bpf_prog_type type,
248 struct bpf_object **pobj, int *prog_fd); 252 struct bpf_object **pobj, int *prog_fd);
253
254int bpf_set_link_xdp_fd(int ifindex, int fd, __u32 flags);
249#endif 255#endif