From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by dpdk.org (Postfix) with ESMTP id 103DF6AAE for ; Fri, 5 Dec 2014 10:31:19 +0100 (CET) Received: by mail-wi0-f178.google.com with SMTP id em10so744598wid.5 for ; Fri, 05 Dec 2014 01:31:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=KHyckNmhi3eiKLne/x6GcTl/1LBo8q8Nbj3MY9aObMs=; b=UzEcP5OczzfRr4GIBKrTK5+VIt5My6dUziD2QzTC2bAaLQI9KNb1ZiEYpdUTD0bYx+ C2pIi1F8fadmsQhCEz95Lj70lHs7NER72JLPoWmjJBNYGcOwaHXlJDaI/CpmHzyiMFjz jvmLghArcogW+ZR5m53Qq38SuSpd1xb4CGgOTpR5HheRHvBIysRnx0J6wvdiN9CvDsAF HMFhcndX+Y1ojFuJJcki4Ke67aXf9ME55n2cd+hCkRqTj9EvpegRaj9w0eSIB8nME8wC qQ6sJRzTrdQo6b1bZf1TdWutr5PqCQ341DAW0zvag1WvG/oDQEn4y0jink5mMZvIKywM VpPA== X-Gm-Message-State: ALoCoQk5XrVPA1G0UZ18fu4ySzPDKACB5T2KQgG5HbuV7cEnqZEBd0EVvV1e5v3K1Sirde2lTaqV X-Received: by 10.180.91.36 with SMTP id cb4mr2669283wib.30.1417771878929; Fri, 05 Dec 2014 01:31:18 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id wv8sm43988970wjc.44.2014.12.05.01.31.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Dec 2014 01:31:18 -0800 (PST) From: Thomas Monjalon To: "John W. Linville" Date: Fri, 05 Dec 2014 10:30:53 +0100 Message-ID: <8974312.4KPnm9h9PX@xps13> Organization: 6WIND User-Agent: KMail/4.14.3 (Linux/3.17.4-1-ARCH; KDE/4.14.3; x86_64; ; ) In-Reply-To: <1417729325-9410-1-git-send-email-linville@tuxdriver.com> References: <1417729325-9410-1-git-send-email-linville@tuxdriver.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] librte_pmd_af_packet: add compile-time checks for kernel-specific options X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Dec 2014 09:31:19 -0000 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