libbpf: add ifindex to enable offload support
authorDavid Beckett <david.beckett@netronome.com>
Wed, 16 May 2018 21:02:49 +0000 (14:02 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 16 May 2018 22:54:26 +0000 (00:54 +0200)
commitf0307a7ed17fa8925321a4f58f5ca56eeedd4fa3
tree49c56445e06a7feed53aacd70eb8cef39ebc40f2
parentbe2d04d11fd33bd46622f94619aae1596d9f9303
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>
tools/lib/bpf/bpf.c
tools/lib/bpf/bpf.h
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h