net/tap: use local eBPF definitions
authorOphir Munk <ophirmu@mellanox.com>
Tue, 23 Jan 2018 21:54:09 +0000 (21:54 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 24 Jan 2018 18:03:29 +0000 (19:03 +0100)
commite011bad02dd4966ec1598eb01318c84ec88280f4
tree14b398d2b14e970e47ce1197b2f502cd5da52e07
parente865cb4d1c53196f2a9f5d979ddebc6040754044
net/tap: use local eBPF definitions

eBPF has a graceful approach: it must successfully compile on all Linux
distributions. If a specific kernel cannot support eBPF it will gracefully
refuse the eBPF netlink message sent to it.
The kernel header file linux/bpf.h (if present) on different Linux
distributions may not include all definitions required for TAP
compilation.
In order to guarantee a successful eBPF compilation everywhere all the
required definitions for TAP have been locally added instead of including
file <linux/bpf.h>

Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
Tested-by: Harry van Haaren <harry.van.haaren@intel.com>
drivers/net/tap/Makefile
drivers/net/tap/tap_bpf.h