summaryrefslogtreecommitdiff
path: root/tools/lib/bpf/libbpf.h
diff options
context:
space:
mode:
authorDavid Beckett <david.beckett@netronome.com>2018-05-17 00:02:49 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2018-05-17 01:54:26 +0300
commitf0307a7ed17fa8925321a4f58f5ca56eeedd4fa3 (patch)
tree49c56445e06a7feed53aacd70eb8cef39ebc40f2 /tools/lib/bpf/libbpf.h
parentbe2d04d11fd33bd46622f94619aae1596d9f9303 (diff)
downloadlinux-f0307a7ed17fa8925321a4f58f5ca56eeedd4fa3.tar.xz
libbpf: add ifindex to enable offload support
BPF programs currently can only be offloaded using iproute2. This patch will allow programs to be offloaded using libbpf calls. Signed-off-by: David Beckett <david.beckett@netronome.com> Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/lib/bpf/libbpf.h')
-rw-r--r--tools/lib/bpf/libbpf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf.h b/tools/lib/bpf/libbpf.h
index 4574b9563278..cd3fd8d782c7 100644
--- a/tools/lib/bpf/libbpf.h
+++ b/tools/lib/bpf/libbpf.h
@@ -259,6 +259,7 @@ struct bpf_prog_load_attr {
const char *file;
enum bpf_prog_type prog_type;
enum bpf_attach_type expected_attach_type;
+ int ifindex;
};
int bpf_prog_load_xattr(const struct bpf_prog_load_attr *attr,