From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7B248A0093; Fri, 23 Dec 2022 03:23:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 75D77410F9; Fri, 23 Dec 2022 03:23:22 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 51C5240685 for ; Fri, 23 Dec 2022 03:23:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671762200; x=1703298200; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=90gvwW776Ghbd/h27nSSr/Q1N9IcDqCGHF4Fr/u6YCo=; b=iDkG4mA8viF6A+WXOuVvocnwMzG/B+u/O7mLvUUCGQdW4ByMJ/FJd38e gF8g1i3fsDErYj4azeU71V6O+wEFqOOSGU93Qio7iim2INRNJ7aIsfOfo vEMjCiHyozvxylJ6EDaVVyE1O/w1bP+h/46clINBVi6I+AcCfo04qWccm s77KKINts6g7n7sJJfHIGwS8K5i9HT7ECgjfzSUMavkBLaw1eH4FQhKWD fynTon5UoCtC3FqPmRt2lvo9v8TGTRocbMb+ORw4QvFh5p+S8hZH6bEWE xtnOKIeb0QhxxQN9tJnNGTLcCYgXoDMEcjsHlcofIpclSNbFDENSguT7+ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10569"; a="320316604" X-IronPort-AV: E=Sophos;i="5.96,267,1665471600"; d="scan'208";a="320316604" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Dec 2022 18:23:19 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10569"; a="651972726" X-IronPort-AV: E=Sophos;i="5.96,267,1665471600"; d="scan'208";a="651972726" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Dec 2022 18:23:17 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 2/2] tests/dpdk_gro_lib_cbdma: modify dmas parameter by DPDK chaneged Date: Fri, 23 Dec 2022 10:14:34 +0800 Message-Id: <20221223021434.751141-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 1.Modify dmas parameter by the local patch changed. 2.As DPDK commit 236bc417(app/testpmd: fix MAC header in checksum forward engine),need to add `csum mac-swap off ` steps. Signed-off-by: Wei Ling --- tests/TestSuite_dpdk_gro_lib_cbdma.py | 31 +++++++++------------------ 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/tests/TestSuite_dpdk_gro_lib_cbdma.py b/tests/TestSuite_dpdk_gro_lib_cbdma.py index c77c7075..6d31403b 100644 --- a/tests/TestSuite_dpdk_gro_lib_cbdma.py +++ b/tests/TestSuite_dpdk_gro_lib_cbdma.py @@ -2,13 +2,6 @@ # Copyright(c) 2022 Intel Corporation # -""" -DPDK Test suite. - -dpdk gro lib test suite. -In this suite, in order to check the performance of gso lib, will use one -hostcpu to start qemu and only have one vcpu -""" import re import time @@ -119,6 +112,8 @@ class TestDPDKGROLibCbdma(TestCase): def set_testpmd_params(self): self.vhost_user.send_expect("set fwd csum", "testpmd> ", 120) + self.vhost_user.send_expect("csum mac-swap off 0", "testpmd> ", 120) + self.vhost_user.send_expect("csum mac-swap off 1", "testpmd> ", 120) self.vhost_user.send_expect("stop", "testpmd> ", 120) self.vhost_user.send_expect("port stop 0", "testpmd> ", 120) self.vhost_user.send_expect("port stop 1", "testpmd> ", 120) @@ -222,26 +217,20 @@ class TestDPDKGROLibCbdma(TestCase): """ self.config_kernel_nic_host() self.get_cbdma_ports_info_and_bind_to_dpdk(cbdma_num=2) - lcore_dma = ( - "lcore%s@%s," - "lcore%s@%s," - "lcore%s@%s," + dmas = ( + "txq0@%s;" + "txq1@%s;" + "rxq0@%s;" + "rxq1@%s" % ( - self.vhost_core_list[1], self.cbdma_list[0], - self.vhost_core_list[1], + self.cbdma_list[0], self.cbdma_list[1], - self.vhost_core_list[2], self.cbdma_list[1], ) ) - param = ( - "--txd=1024 --rxd=1024 --txq=2 --rxq=2 --nb-cores=2 --lcore-dma=[%s]" - % lcore_dma - ) - eal_param = ( - "--vdev 'net_vhost0,iface=vhost-net,queues=2,dmas=[txq0;txq1;rxq0;rxq1]'" - ) + param = "--txd=1024 --rxd=1024 --txq=2 --rxq=2 --nb-cores=2" + eal_param = "--vdev 'net_vhost0,iface=vhost-net,queues=2,dmas=[%s]'" % dmas ports = self.cbdma_list ports.append(self.pci) self.vhost_pmd.start_testpmd( -- 2.25.1