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 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 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.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) -- 2.25.1