From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v1] net/tap: use local eBPF definitions Date: Wed, 24 Jan 2018 19:03:55 +0100 Message-ID: <2347692.HfTsUKljQz@xps> References: <1516744449-16158-1-git-send-email-ophirmu@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "Van Haaren, Harry" , Pascal Mazon , Olga Shern To: Ophir Munk Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 6E41D1B16D for ; Wed, 24 Jan 2018 19:04:37 +0100 (CET) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 24/01/2018 12:05, Van Haaren, Harry: > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ophir Munk > > Sent: Tuesday, January 23, 2018 9:54 PM > > To: dev@dpdk.org; Pascal Mazon > > Cc: Thomas Monjalon ; Olga Shern ; > > Ophir Munk > > 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 > > > > Signed-off-by: Ophir Munk > > 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 Applied, thanks