From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] librte_pmd_af_packet: add compile-time checks for kernel-specific options Date: Fri, 05 Dec 2014 10:30:53 +0100 Message-ID: <8974312.4KPnm9h9PX@xps13> References: <1417729325-9410-1-git-send-email-linville@tuxdriver.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: "John W. Linville" Return-path: In-Reply-To: <1417729325-9410-1-git-send-email-linville-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi John, 2014-12-04 16:42, John W. Linville: > This allows the PMD to compile with kernels that don't support the > options in question. The "#if defined(...)" lines are a bit ugly, > but I don't know of any better way to accomplish the task. > > Signed-off-by: John W. Linville > --- > lib/librte_pmd_af_packet/rte_eth_af_packet.c | 16 ++++++++++++---- > 1 file changed, 12 insertions(+), 4 deletions(-) Is it possible to enable compilation of this PMD in default configuration? I guess it shouldn't fail anymore with this patch? -- Thomas