From patchwork Tue Sep 1 02:55:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xie, WeiX" X-Patchwork-Id: 76187 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 636A5A04B2; Tue, 1 Sep 2020 04:53:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C42531C0DA; Tue, 1 Sep 2020 04:53:54 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 1877A1C0D0 for ; Tue, 1 Sep 2020 04:53:52 +0200 (CEST) IronPort-SDR: RdBlPE+EfAH1uzyJipXTQE+gQDB4eXbfkOwCQc0vG56v3JZeK556TgtJjiqNuh/NryJUaecVwa URtaXtPz4zdg== X-IronPort-AV: E=McAfee;i="6000,8403,9730"; a="157097110" X-IronPort-AV: E=Sophos;i="5.76,377,1592895600"; d="scan'208";a="157097110" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2020 19:53:52 -0700 IronPort-SDR: eDN2PfdNYGcT0FlF3030dMmxwDq0Euf1yEEoVCnoRYCxwI+DWWEe0nHooulbf49mXWfzvjZ38V 0mciadbVvkNg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,377,1592895600"; d="scan'208";a="333562609" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by fmsmga002.fm.intel.com with ESMTP; 31 Aug 2020 19:53:51 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Tue, 1 Sep 2020 10:55:13 +0800 Message-Id: <20200901025517.9501-2-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200901025517.9501-1-weix.xie@intel.com> References: <20200901025517.9501-1-weix.xie@intel.com> Subject: [dts] [dts 1/5] test_plans/qinq_filter_test_plan:add the change CONFIG_RTE_LIBRTE_I40E_INC_VECTOR to n in test plan X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: Xie wei Acked-by: Lin Xueqin --- test_plans/qinq_filter_test_plan.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test_plans/qinq_filter_test_plan.rst b/test_plans/qinq_filter_test_plan.rst index fa995f3..72744ee 100644 --- a/test_plans/qinq_filter_test_plan.rst +++ b/test_plans/qinq_filter_test_plan.rst @@ -53,6 +53,8 @@ Test Case 1: test qinq packet type Testpmd configuration - 4 RX/TX queues per port ------------------------------------------------ +#. For fortville NICs need change the value of + CONFIG_RTE_LIBRTE_I40E_INC_VECTOR in dpdk/config/common_base file to n:: #. set up testpmd with fortville NICs:: From patchwork Tue Sep 1 02:55:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xie, WeiX" X-Patchwork-Id: 76188 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 19743A04B4; Tue, 1 Sep 2020 04:53:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EE7BD1C0D9; Tue, 1 Sep 2020 04:53:55 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 464751C10A for ; Tue, 1 Sep 2020 04:53:55 +0200 (CEST) IronPort-SDR: Kmf2MJLbYHwCfFxZ2Z2J1KQJ+0MKc/oWfXhUtPxelDVfkPwG9yyXQboqu/JNmLubq+S748zzL/ uqxBPrOadWEg== X-IronPort-AV: E=McAfee;i="6000,8403,9730"; a="157097117" X-IronPort-AV: E=Sophos;i="5.76,377,1592895600"; d="scan'208";a="157097117" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2020 19:53:54 -0700 IronPort-SDR: mz/PG61uoHYr7yaszIjKnFEjX1YGMSjIAuxuagAlTtmvqCkD6ZcmcEu5o6F0vLbSU9uZ4DkFJw PEigFcf7o0Bg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,377,1592895600"; d="scan'208";a="333562622" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by fmsmga002.fm.intel.com with ESMTP; 31 Aug 2020 19:53:53 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Tue, 1 Sep 2020 10:55:14 +0800 Message-Id: <20200901025517.9501-3-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200901025517.9501-1-weix.xie@intel.com> References: <20200901025517.9501-1-weix.xie@intel.com> Subject: [dts] [dts 2/5] test_plans/generic_filter_test_plan:add the change IXGBE_NONE_MODE_TX_NB_QUEUES to 128 in test plan X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: Xie wei Acked-by: Lin Xueqin --- test_plans/generic_filter_test_plan.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test_plans/generic_filter_test_plan.rst b/test_plans/generic_filter_test_plan.rst index 8f69916..de02f62 100644 --- a/test_plans/generic_filter_test_plan.rst +++ b/test_plans/generic_filter_test_plan.rst @@ -492,7 +492,13 @@ Test Case 10: 128 queues This case is designed for NIC(niantic). Since NIC(niantic) has 128 transmit queues, it should be supports 128 kinds of filter if Hardware have enough -cores. Launch the app ``testpmd`` with the following arguments:: +cores. +DPDK enable 64 queues in ixgbe driver by default. Enlarge queue number to 128 +for 128 queues test:: + + sed -i -e 's/#define IXGBE_NONE_MODE_TX_NB_QUEUES 64$/#define IXGBE_NONE_MODE_TX_NB_QUEUES 128/' drivers/net/ixgbe/ixgbe_ethdev.h + +Launch the app ``testpmd`` with the following arguments:: ./testpmd -c fffff -n 4 -- -i --disable-rss --rxq=128 --txq=128 --nb-cores=16 --nb-ports=2 --total-num-mbufs=60000 From patchwork Tue Sep 1 02:55:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xie, WeiX" X-Patchwork-Id: 76189 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 37FEFA04AC; Tue, 1 Sep 2020 04:53:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 22A2C1C10E; Tue, 1 Sep 2020 04:53:58 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 6012A1C0D0 for ; Tue, 1 Sep 2020 04:53:57 +0200 (CEST) IronPort-SDR: mbvUaEv81Soc01AgcVOAbE8D9yJzZYv2/gFx/a+ulK9mlf02H2sTlITQ1ZJ1HtYrNAPcbL+X/z WSxzroBlakIA== X-IronPort-AV: E=McAfee;i="6000,8403,9730"; a="157097122" X-IronPort-AV: E=Sophos;i="5.76,377,1592895600"; d="scan'208";a="157097122" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2020 19:53:57 -0700 IronPort-SDR: /RfjPh3IQBmBy3IbjGaiDoji1G9PpFHvBpw45qLc1m6s/Ey9y3CiyMOP7OeZU3ovvkcWeqNMkd EAKyqef4xQfg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,377,1592895600"; d="scan'208";a="333562644" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by fmsmga002.fm.intel.com with ESMTP; 31 Aug 2020 19:53:55 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Tue, 1 Sep 2020 10:55:15 +0800 Message-Id: <20200901025517.9501-4-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200901025517.9501-1-weix.xie@intel.com> References: <20200901025517.9501-1-weix.xie@intel.com> Subject: [dts] [dts 3/5] test_plans/userspace_ethtool_test_plan:modify vlan fiter param X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: Xie wei Acked-by: Lin Xueqin --- test_plans/userspace_ethtool_test_plan.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_plans/userspace_ethtool_test_plan.rst b/test_plans/userspace_ethtool_test_plan.rst index 2bce184..ca86bea 100644 --- a/test_plans/userspace_ethtool_test_plan.rst +++ b/test_plans/userspace_ethtool_test_plan.rst @@ -164,7 +164,7 @@ Test Case: Vlan test enable vlan filter flag in main.c of dpdk's ethtool:: - sed -i -e '/cfg_port.txmode.mq_mode = ETH_MQ_TX_NONE;$/a\\cfg_port.rxmode.hw_vlan_filter=1;' examples/ethtool/ethtool-app/main.c + sed -i -e '/cfg_port.txmode.mq_mode = ETH_MQ_TX_NONE;$/a\\cfg_port.rxmode.offloads|=DEV_RX_OFFLOAD_VLAN_FILTER;' examples/ethtool/ethtool-app/main.c re-compile examples/ethtool:: From patchwork Tue Sep 1 02:55:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xie, WeiX" X-Patchwork-Id: 76190 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 64CF0A04AC; Tue, 1 Sep 2020 04:54:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 582BD1C0D8; Tue, 1 Sep 2020 04:54:01 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id B82111C0D0 for ; Tue, 1 Sep 2020 04:53:59 +0200 (CEST) IronPort-SDR: ItzEkDhps7DpszEQCo70QutHlQp2lSZ5NYDc3WNals1/3p94xEjLY8WSdlt2YCHkXdSgl3Aq89 xlXC+A2pF6yg== X-IronPort-AV: E=McAfee;i="6000,8403,9730"; a="157097126" X-IronPort-AV: E=Sophos;i="5.76,377,1592895600"; d="scan'208";a="157097126" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2020 19:53:59 -0700 IronPort-SDR: 2lPWJ4B1umRVS8H6rNsmrX+eJK2X6BDviNeYHDsU/VoxTEa587OCF6UuoiVYqniGxk+7UPcNOG ++utju0jmb+g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,377,1592895600"; d="scan'208";a="333562658" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by fmsmga002.fm.intel.com with ESMTP; 31 Aug 2020 19:53:58 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Tue, 1 Sep 2020 10:55:16 +0800 Message-Id: <20200901025517.9501-5-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200901025517.9501-1-weix.xie@intel.com> References: <20200901025517.9501-1-weix.xie@intel.com> Subject: [dts] [dts 4/5] test_plans/inline_ipsec_test_plan:add print info for ipsec app X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: Xie wei Acked-by: Lin Xueqin --- test_plans/inline_ipsec_test_plan.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test_plans/inline_ipsec_test_plan.rst b/test_plans/inline_ipsec_test_plan.rst index c37b229..3a26e18 100644 --- a/test_plans/inline_ipsec_test_plan.rst +++ b/test_plans/inline_ipsec_test_plan.rst @@ -100,7 +100,15 @@ modprobe vfio-pci This suite depend PyCryptodome,it provide authenticated encryption modes(GCM) module dependences:cryptography (1.7.2), pycryptodome (3.4.7), pycryptodomex (3.4.7), pycryptopp (0.6.0), scapy (2.3.3 or later) - + +Add print code in IPSEC app:: + + sed -i -e 's/if (nb_rx > 0)/if (nb_rx > 0) {/g' -e '/\/\* dequeue and process completed crypto-ops \*\//i\\t\t\t}' -e '/process_pkts(qconf, pkts, nb_rx, portid);/i\\t\t\t\tprintf("[debug]receive %llu packet in rxqueueid=%llu\\n",(unsigned long long)nb_rx, (unsigned long long)queueid);' examples/ipsec-secgw/ipsec-secgw.c + +Re-compile examples/ipsec-secgw:: + + make -C examples/ipsec-secgw + Test Case: Inline cfg parsing ============================= Create inline ipsec configuration file like below:: From patchwork Tue Sep 1 02:55:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xie, WeiX" X-Patchwork-Id: 76191 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 88F07A04AC; Tue, 1 Sep 2020 04:54:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 807A91C0DC; Tue, 1 Sep 2020 04:54:03 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id EBDA01C0D0 for ; Tue, 1 Sep 2020 04:54:01 +0200 (CEST) IronPort-SDR: MGZgqKEus1gELqCy3m732nuC2CimMFrWcQIvahLuTDr3VEt1slA6WXV92vw/OWcrdAZxGmr+6/ f0rkLHHuf5Og== X-IronPort-AV: E=McAfee;i="6000,8403,9730"; a="157097128" X-IronPort-AV: E=Sophos;i="5.76,377,1592895600"; d="scan'208";a="157097128" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2020 19:54:01 -0700 IronPort-SDR: JmzeiIIBZKlSnQas8b4HJTbGQe9IaD7i4Y6BMNg7gXjp9qDyumwpxLIDdFp+qggiTcDCJtBn4m 5jsK7xxlJI6w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,377,1592895600"; d="scan'208";a="333562674" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by fmsmga002.fm.intel.com with ESMTP; 31 Aug 2020 19:54:00 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Tue, 1 Sep 2020 10:55:17 +0800 Message-Id: <20200901025517.9501-6-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200901025517.9501-1-weix.xie@intel.com> References: <20200901025517.9501-1-weix.xie@intel.com> Subject: [dts] [dts 5/5] test_plans/ptype_mapping_test_plan:add print info to testpmd X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: Xie wei Acked-by: Lin Xueqin --- test_plans/ptype_mapping_test_plan.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test_plans/ptype_mapping_test_plan.rst b/test_plans/ptype_mapping_test_plan.rst index 04ea481..d157b67 100644 --- a/test_plans/ptype_mapping_test_plan.rst +++ b/test_plans/ptype_mapping_test_plan.rst @@ -55,6 +55,10 @@ user applications. Prerequisites ============= +Add print info to testpmd for case:: + + sed -i -e '/printf(\" - VLAN tci=0x%x\", mb->vlan_tci);/a\\\\t\\tprintf(\" - pktype: 0x%x\", mb->packet_type);' app/test-pmd/util.c + Start testpmd, enable rxonly and verbose mode:: ./testpmd -c f -n 4 -- -i --port-topology=chained