From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id C15331BAC4 for ; Thu, 26 Oct 2017 13:01:19 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP; 26 Oct 2017 04:01:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,434,1503385200"; d="scan'208";a="1235556990" Received: from rnicolau-mobl.ger.corp.intel.com (HELO [10.237.221.73]) ([10.237.221.73]) by fmsmga002.fm.intel.com with ESMTP; 26 Oct 2017 04:01:14 -0700 To: David Marchand Cc: "dev@dpdk.org" , Declan Doherty , Pablo de Lara , Hemant Agrawal , borisp@mellanox.com, aviadye@mellanox.com, Thomas Monjalon , sandeep.malik@nxp.com, Jerin Jacob , "Mcnamara, John" , "Ananyev, Konstantin" , shahafs@mellanox.com, Olivier Matz , Akhil Goyal References: <1509013365-13819-1-git-send-email-radu.nicolau@intel.com> <1509013365-13819-3-git-send-email-radu.nicolau@intel.com> From: Radu Nicolau Message-ID: <36c6304e-cd1b-9bd9-2c5d-c6e20eff85e8@intel.com> Date: Thu, 26 Oct 2017 12:01:14 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [dpdk-dev] [PATCH 2/3] net/ixgbe: fix build issue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Oct 2017 11:01:20 -0000 On 10/26/2017 11:36 AM, David Marchand wrote: > On Thu, Oct 26, 2017 at 12:22 PM, Radu Nicolau wrote: >> Build fails when rte_security is disabled; make rte_security mandatory >> Fixes: 9a0752f498d2 ("net/ixgbe: enable inline IPsec") >> >> Signed-off-by: Radu Nicolau >> --- >> drivers/net/ixgbe/Makefile | 6 ++++++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/drivers/net/ixgbe/Makefile b/drivers/net/ixgbe/Makefile >> index f03c426..c879828 100644 >> --- a/drivers/net/ixgbe/Makefile >> +++ b/drivers/net/ixgbe/Makefile >> @@ -31,6 +31,12 @@ >> >> include $(RTE_SDK)/mk/rte.vars.mk >> >> +ifneq ($(MAKECMDGOALS),clean) >> +ifneq ($(CONFIG_RTE_LIBRTE_SECURITY),y) >> +$(error "RTE_LIBRTE_SECURITY is required to build RTE_LIBRTE_IXGBE_PMD") >> +endif >> +endif >> + >> # >> # library name >> # > This is a no go for me unless you explain how it is impossible to > disable it in the code. > > It can be disabled in the code, but as far as I know there is a general push back against having conditionally compiled code. I originally had the security sections in ixgbe PMD isolated, but the feedback was to have them always on. An alternative solution will be to remove the option altogether and always build rte_security library.