From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 55F092B9C for ; Fri, 6 Jan 2017 02:16:15 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 05 Jan 2017 17:16:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,323,1477983600"; d="scan'208";a="1079731397" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga001.jf.intel.com with ESMTP; 05 Jan 2017 17:16:14 -0800 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 5 Jan 2017 17:16:14 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 5 Jan 2017 17:16:13 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.20]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.132]) with mapi id 14.03.0248.002; Fri, 6 Jan 2017 09:16:12 +0800 From: "Wu, Jingjing" To: "Lu, Wenzhuo" , "dev@dpdk.org" CC: "Lu, Wenzhuo" , "Chen, Jing D" , "Iremonger, Bernard" Thread-Topic: [dpdk-dev] [PATCH v7 18/27] app/testpmd: use VFD APIs on i40e Thread-Index: AQHSZY8Ny5licblefEinRfmdq9q816EqqOqQ Date: Fri, 6 Jan 2017 01:16:11 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F810CC3DCB@SHSMSX103.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> In-Reply-To: <1483426488-117332-19-git-send-email-wenzhuo.lu@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 01:16:16 -0000 > -----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 >=20 > 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. >=20 > 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(-) >=20 > 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 >=20 > +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 >=20 > CFLAGS_cmdline.o :=3D -D_GNU_SOURCE >=20 > 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" >=20 > 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" >=20 > -#ifdef RTE_LIBRTE_IXGBE_PMD 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. > "set tx loopback (port_id) (on|off)\n" > " Enable or disable tx loopback.\n\n" >=20 > +#ifdef RTE_LIBRTE_IXGBE_PMD > "set all queues drop (port_id) (on|off)\n" > " Set drop enable bit for all queues.\n\n" >=20 > "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 >=20 > "set vf mac antispoof (port_id) (vf_id) (on|off).\n" > " Set MAC antispoof for a VF from the PF.\n\n" > -#endif >=20