From patchwork Wed Nov 16 02:01:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 119877 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 37749A00C4; Wed, 16 Nov 2022 03:07:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 308FC40E03; Wed, 16 Nov 2022 03:07:07 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 9993B40DFB for ; Wed, 16 Nov 2022 03:07:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668564425; x=1700100425; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=TAHEYTLg1ranO97irB1iYBIA7XZAkKCi4RJ7nmaBa1E=; b=Y1KWkSQmjBxhwhoensDKmtruv5Xd1T3yvBGoiNbOylX9g+I41AnVtKM0 GfjJtDNPsqHNxPsN0n8iljCxXXu6ffgj0LY2kG66nbqVQ0DuusuA02LjH rlVHUohhcnbK8OJL+jMDUZmk8K19UWqkQcYZEBcka0/DzPfcOvz/yVjB9 jMufzRmk4w0S2q8NXQDkbcVSn8YZKl9s2T91YsPdWW71AgSJvwpB+arYj zAYNzXI7wpETpQWWDgg/3OOXq4/kjZ2Jo5/fh9kwTOE0Qt2ecCjUOXQwh 5DHChlaRDLQPK2DA3CnXV4efclmVAOuUh5GvGcqlLFP7EkYIbsdsrGlQu w==; X-IronPort-AV: E=McAfee;i="6500,9779,10532"; a="314236963" X-IronPort-AV: E=Sophos;i="5.96,167,1665471600"; d="scan'208";a="314236963" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2022 18:06:32 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10532"; a="764140271" X-IronPort-AV: E=Sophos;i="5.96,167,1665471600"; d="scan'208";a="764140271" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2022 18:06:31 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 1/2] test_plans/virtio_user_as_exceptional_path_test_plan: modify testplan by DPDK changed Date: Wed, 16 Nov 2022 10:01:21 +0800 Message-Id: <20221116020121.609503-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 As DPDK commit 236bc417(app/testpmd: fix MAC header in checksum forward engine),need to add `csum mac-swap off ` steps in testplan. Signed-off-by: Wei Ling --- test_plans/virtio_user_as_exceptional_path_test_plan.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test_plans/virtio_user_as_exceptional_path_test_plan.rst b/test_plans/virtio_user_as_exceptional_path_test_plan.rst index 81399ea2..a002b5b7 100644 --- a/test_plans/virtio_user_as_exceptional_path_test_plan.rst +++ b/test_plans/virtio_user_as_exceptional_path_test_plan.rst @@ -32,6 +32,8 @@ Flow:tap0-->vhost-net-->virtio_user-->nic0-->nic1 .//app/dpdk-testpmd -c 0xc0000 -n 4 --file-prefix=test2 \ --vdev=virtio_user0,mac=00:01:02:03:04:05,path=/dev/vhost-net,queue_size=1024 -- -i --rxd=1024 --txd=1024 testpmd>set fwd csum + testpmd>csum mac-swap off 0 + testpmd>csum mac-swap off 1 testpmd>stop testpmd>port stop 0 testpmd>port stop 1 @@ -128,4 +130,4 @@ Flow: tap0<-->vhost-net<-->virtio_user<-->nic0<-->TG 6. Bind vhost-net kthread with logical core: firstly check process by "ps -ef|grep vhost", check vhost-net kthread by "ps -T xxxx", for multiple queues, there are multiple vhost kthreads, then bind the pids to different logical cores at the same socket as the nic port by taskset. -7. Try different line rate with ixia to find a point that rx_throughput=tx_throughput, for example if using ninatic 10G nic, the balance line rate is about 5 (should be double of case 2). \ No newline at end of file +7. Try different line rate with ixia to find a point that rx_throughput=tx_throughput, for example if using ninatic 10G nic, the balance line rate is about 5 (should be double of case 2). From patchwork Wed Nov 16 02:01:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 119878 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 59B46A0542; Wed, 16 Nov 2022 03:07:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5422D410D3; Wed, 16 Nov 2022 03:07:08 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 7443540DFB for ; Wed, 16 Nov 2022 03:07:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668564426; x=1700100426; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=SQw82PAIet6U36oK2wulC/moD/AJaPtD2uUhBfXOWc8=; b=kHEEX4A6Ah2bjzZjyZiySmH0xQRbSCPA6Qw18niRpLyRZFmZb+D3MJqQ bNat9czk3pi4EaXOBDaSn4jr6IU4ya85FdFIXYh7C1g4gWQaSo+stVguJ Z57G3H9avLF7EPJDZVWMLqAA9tTVVAJr90fDnBOFQqSyKcNzPmRewTfJp HIg10E262jDSpGjmDG1jpTgntuUDzeVVumL1KQXYFpw84S1NvLcfdq1B5 tIwiuNM4ItXMKVlC5b2cw0hhNyBAUIIREKkwHMXEXNT6lJgsniuLA6JA7 oPQdpvExmgwM31h7ZEXqysSXuhR6zrvDJGI920wo0TUQ16uTMWYocUUtL g==; X-IronPort-AV: E=McAfee;i="6500,9779,10532"; a="314236981" X-IronPort-AV: E=Sophos;i="5.96,167,1665471600"; d="scan'208";a="314236981" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2022 18:06:41 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10532"; a="764140281" X-IronPort-AV: E=Sophos;i="5.96,167,1665471600"; d="scan'208";a="764140281" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2022 18:06:40 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 2/2] tests/virtio_user_as_exceptional_path: modify testsuite by DPDK changed Date: Wed, 16 Nov 2022 10:01:30 +0800 Message-Id: <20221116020130.609563-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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.As DPDK commit 236bc417(app/testpmd: fix MAC header in checksum forward engine),need to add `csum mac-swap off ` steps in testsuite. 2.Delete the redundant white space to fix the error command issue. Signed-off-by: Wei Ling --- tests/TestSuite_virtio_user_as_exceptional_path.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_virtio_user_as_exceptional_path.py b/tests/TestSuite_virtio_user_as_exceptional_path.py index 509d63f3..a596f147 100644 --- a/tests/TestSuite_virtio_user_as_exceptional_path.py +++ b/tests/TestSuite_virtio_user_as_exceptional_path.py @@ -97,7 +97,7 @@ class TestVirtioUserAsExceptionalPath(TestCase): testcmd = self.app_testpmd_path + " " vdev = "--vdev=virtio_user0,mac=%s,path=/dev/vhost-net," % self.virtio_mac eal_params = self.dut.create_eal_parameters(cores=core_mask, ports=[self.pci0]) - para = " queue_size=1024,queues=%s -- -i --rxd=1024 --txd=1024 %s" % ( + para = "queue_size=1024,queues=%s -- -i --rxd=1024 --txd=1024 %s" % ( self.queue, comment, ) @@ -130,6 +130,8 @@ class TestVirtioUserAsExceptionalPath(TestCase): self.vhost_user.send_expect("modprobe vhost-net", "#", 120) self.vhost_user.send_expect(self.testcmd_start, "testpmd> ", 120) 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)