From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 2D68A2A58 for ; Fri, 6 Jan 2017 08:23:48 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP; 05 Jan 2017 23:23:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,323,1477983600"; d="scan'208";a="805742986" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by FMSMGA003.fm.intel.com with ESMTP; 05 Jan 2017 23:23:47 -0800 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 5 Jan 2017 23:23:47 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 5 Jan 2017 23:23:47 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.88]) by SHSMSX104.ccr.corp.intel.com ([10.239.4.70]) with mapi id 14.03.0248.002; Fri, 6 Jan 2017 15:23:45 +0800 From: "Lu, Wenzhuo" To: "Wu, Jingjing" , "dev@dpdk.org" CC: "Chen, Jing D" , "Iremonger, Bernard" Thread-Topic: [dpdk-dev] [PATCH v7 18/27] app/testpmd: use VFD APIs on i40e Thread-Index: AQHSZY5y66W/nb2vnkCZqm2CzALSOKEqI7WAgADsMWA= Date: Fri, 6 Jan 2017 07:23:44 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09093B55661A@shsmsx102.ccr.corp.intel.com> References: <1480637533-37425-1-git-send-email-wenzhuo.lu@intel.com> <1483426488-117332-1-git-send-email-wenzhuo.lu@intel.com> <1483426488-117332-19-git-send-email-wenzhuo.lu@intel.com> <9BB6961774997848B5B42BEC655768F810CC3DCB@SHSMSX103.ccr.corp.intel.com> In-Reply-To: <9BB6961774997848B5B42BEC655768F810CC3DCB@SHSMSX103.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v7 18/27] 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: Fri, 06 Jan 2017 07:23:49 -0000 Hi Jingjing, > -----Original Message----- > From: Wu, Jingjing > Sent: Friday, January 6, 2017 9:16 AM > To: Lu, Wenzhuo; dev@dpdk.org > Cc: Lu, Wenzhuo; Chen, Jing D; Iremonger, Bernard > Subject: RE: [dpdk-dev] [PATCH v7 18/27] app/testpmd: use VFD APIs on i40= e >=20 >=20 >=20 > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Wenzhuo Lu > > Sent: Tuesday, January 3, 2017 2:55 PM > > To: dev@dpdk.org > > Cc: Lu, Wenzhuo ; Chen, Jing D > > ; Iremonger, Bernard > > > > Subject: [dpdk-dev] [PATCH v7 18/27] app/testpmd: use VFD APIs on i40e > > > > 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 | 3 + > > app/test-pmd/cmdline.c | 154 > +++++++++++++++++++++++++++++++++++++++- > > --------- > > 2 files changed, 126 insertions(+), 31 deletions(-) > > > > diff --git a/app/test-pmd/Makefile b/app/test-pmd/Makefile index > > 891b85a..66bd38a 100644 > > --- a/app/test-pmd/Makefile > > +++ b/app/test-pmd/Makefile > > @@ -58,7 +58,10 @@ SRCS-y +=3D csumonly.c SRCS-y +=3D icmpecho.c > > SRCS-$(CONFIG_RTE_LIBRTE_IEEE1588) +=3D ieee1588fwd.c > > > > +ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) > > _LDLIBS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) +=3D -lrte_pmd_ixgbe > > +_LDLIBS-$(CONFIG_RTE_LIBRTE_I40E_PMD) +=3D -lrte_pmd_i40e endif > > > > CFLAGS_cmdline.o :=3D -D_GNU_SOURCE > > > > diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index > > ed84d7a..9a44b4f 100644 > > --- a/app/test-pmd/cmdline.c > > +++ b/app/test-pmd/cmdline.c > > @@ -90,6 +90,9 @@ > > #ifdef RTE_LIBRTE_IXGBE_PMD > > #include > > #endif > > +#ifdef RTE_LIBRTE_I40E_PMD > > +#include > > +#endif > > #include "testpmd.h" > > > > static struct cmdline *testpmd_cl; > > @@ -262,19 +265,19 @@ static void cmd_help_long_parsed(void > > *parsed_result, > > "set portlist (x[,y]*)\n" > > " Set the list of forwarding ports.\n\n" > > > > -#ifdef RTE_LIBRTE_IXGBE_PMD >=20 > How about use > #if defined(RTE_LIBRTE_IXGBE_PMD) || defined (RTE_LIBRTE_I40E_PMD) but > not remove it, because this command only works for ixgbe and i40e pmd. It's on purpose. Just like regular CLIs, we show them no matter NIC support= s it or not. We will check when processing CLIs. >=20 > > "set tx loopback (port_id) (on|off)\n" > > " Enable or disable tx loopback.\n\n" > > > > +#ifdef RTE_LIBRTE_IXGBE_PMD > > "set all queues drop (port_id) (on|off)\n" > > " Set drop enable bit for all queues.\n\n" > > > > "set vf split drop (port_id) (vf_id) (on|off)\n" > > " Set split drop enable bit for a VF from the PF.\n\n" > > +#endif > > > > "set vf mac antispoof (port_id) (vf_id) (on|off).\n" > > " Set MAC antispoof for a VF from the PF.\n\n" > > -#endif > >