From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 6E5DFF939 for ; Mon, 19 Dec 2016 18:09:55 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP; 19 Dec 2016 09:09:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,374,1477983600"; d="scan'208";a="800112873" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.29]) ([10.237.220.29]) by FMSMGA003.fm.intel.com with ESMTP; 19 Dec 2016 09:09:48 -0800 To: dev@dpdk.org References: <20161216143919.4909-1-ferruh.yigit@intel.com> <20161216190257.6921-1-ferruh.yigit@intel.com> <20161216190257.6921-19-ferruh.yigit@intel.com> Cc: Jingjing Wu , Helin Zhang , Wenzhuo Lu , Chen Jing D , Bernard Iremonger From: Ferruh Yigit Message-ID: <0b0af0c3-3b09-e44c-e489-d9a5313c4596@intel.com> Date: Mon, 19 Dec 2016 17:09:47 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20161216190257.6921-19-ferruh.yigit@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH v5 18/29] app/testpmd: use VFD APIs on i40e 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: Mon, 19 Dec 2016 17:09:55 -0000 On 12/16/2016 7:02 PM, Ferruh Yigit wrote: > From: Wenzhuo Lu > > The new VF Daemon (VFD) APIs is implemented on i40e. Change > testpmd code to use them, including VF MAC anti-spoofing, > VF VLAN anti-spoofing, TX loopback, VF VLAN strip, VF VLAN > insert. > > Signed-off-by: Wenzhuo Lu > Signed-off-by: Chen Jing D(Mark) > Signed-off-by: Bernard Iremonger > --- > app/test-pmd/Makefile | 2 + > app/test-pmd/cmdline.c | 150 +++++++++++++++++++++++++++++++++++++++---------- > 2 files changed, 121 insertions(+), 31 deletions(-) > > diff --git a/app/test-pmd/Makefile b/app/test-pmd/Makefile > index 891b85a..a0c3366 100644 > --- a/app/test-pmd/Makefile > +++ b/app/test-pmd/Makefile > @@ -58,7 +58,9 @@ SRCS-y += csumonly.c > SRCS-y += icmpecho.c > SRCS-$(CONFIG_RTE_LIBRTE_IEEE1588) += ieee1588fwd.c > > +_LDLIBS-y += --whole-archive Hi Wenzhuo, Following lines are required for shared library, but I guess above line required because they cause problem with static library. So, instead of adding above line, what do you think wrapping below lines with ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) ? > _LDLIBS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += -lrte_pmd_ixgbe > +_LDLIBS-$(CONFIG_RTE_LIBRTE_I40E_PMD) += -lrte_pmd_i40e > > CFLAGS_cmdline.o := -D_GNU_SOURCE > <...>