[dpdk-dev] [PATCH v1] net/tap: use local eBPF definitions

Van Haaren, Harry harry.van.haaren at intel.com
Wed Jan 24 12:05:54 CET 2018


> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Ophir Munk
> Sent: Tuesday, January 23, 2018 9:54 PM
> To: dev at dpdk.org; Pascal Mazon <pascal.mazon at 6wind.com>
> Cc: Thomas Monjalon <thomas at monjalon.net>; Olga Shern <olgas at mellanox.com>;
> Ophir Munk <ophirmu at mellanox.com>
> Subject: [dpdk-dev] [PATCH v1] 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 at mellanox.com>

Tested on a Fedora 20 vm, uname -r = 3.15.6-200.fc20.x86_64

Confirmed before patch was failing, with patch build is fixed.

Tested-by: Harry van Haaren <harry.van.haaren at intel.com>


More information about the dev mailing list