From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v5 18/29] app/testpmd: use VFD APIs on i40e Date: Mon, 19 Dec 2016 17:09:47 +0000 Message-ID: <0b0af0c3-3b09-e44c-e489-d9a5313c4596@intel.com> References: <20161216143919.4909-1-ferruh.yigit@intel.com> <20161216190257.6921-1-ferruh.yigit@intel.com> <20161216190257.6921-19-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Cc: Jingjing Wu , Helin Zhang , Wenzhuo Lu , Chen Jing D , Bernard Iremonger To: dev@dpdk.org 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) In-Reply-To: <20161216190257.6921-19-ferruh.yigit@intel.com> 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 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 > <...>