From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v9 1/1] net/af_xdp: introduce AF XDP PMD driver Date: Tue, 2 Apr 2019 20:43:48 +0100 Message-ID: <3b489dd8-c70f-94d1-163f-1cf3199f1cf5@intel.com> References: <20190301080947.91086-1-xiaolong.ye@intel.com> <20190402154653.711-1-xiaolong.ye@intel.com> <20190402154653.711-2-xiaolong.ye@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Qi Zhang , Karlsson Magnus , Topel Bjorn , Maxime Coquelin , Luca Boccassi , Bruce Richardson , Ananyev Konstantin , David Marchand , Andrew Rybchenko , Olivier Matz To: Xiaolong Ye , dev@dpdk.org, Stephen Hemminger Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 11B2C1B0F7 for ; Tue, 2 Apr 2019 21:44:00 +0200 (CEST) In-Reply-To: <20190402154653.711-2-xiaolong.ye@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 4/2/2019 4:46 PM, Xiaolong Ye wrote: > Add a new PMD driver for AF_XDP which is a proposed faster version of > AF_PACKET interface in Linux. More info about AF_XDP, please refer to [1] > [2]. > > This is the vanilla version PMD which just uses a raw buffer registered as > the umem. > > [1] https://fosdem.org/2018/schedule/event/af_xdp/ > [2] https://lwn.net/Articles/745934/ > > Signed-off-by: Xiaolong Ye <...> > @@ -0,0 +1,956 @@ > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(c) 2019 Intel Corporation. > + */ > +#include > +#include Under linux, both headers are in same 'bpf' folder, why one included as 'bpf/bpf.h' but other 'xsk.h'? Perhaps this is not problem when headers are installed into system folders, but I am compiling using RTE_KERNELDIR, which used in Makefile as: -I$(RTE_KERNELDIR)/tools/lib/bpf This fails to find 'bpf/bpf.h' Also for '-lbpf', shouldn't need to add '-L$(RTE_KERNELDIR)/tools/lib/bpf', to new added line in 'rte.app.mk', so that it can find the library? I assume you are building in a system with new kernel, I think you need this for functionality, where 'xsk.h' is located in that case? Because I was thinking building and installing libbpf can solve the issue but it is not installing 'xsk.h', not sure why, so not exactly solving. if you still need "CFLAGS += -I$(RTE_KERNELDIR)/tools/lib/bpf" for your case, does it make sense update as following: CFLAGS += -I$(RTE_KERNELDIR)/tools/lib #include