From patchwork Mon Jun 5 06:55:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 128092 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 E5B8D42C31; Mon, 5 Jun 2023 08:55:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E349840DF6; Mon, 5 Jun 2023 08:55:23 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id BD6A04003C for ; Mon, 5 Jun 2023 08:55:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685948121; x=1717484121; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=RrDQCYHTTRQoR7aOMaqygiYufQGEA1vrDRfLfPejx20=; b=WV5Q+ABgefPsvS7ngcUk/8+5z8iZH2IqFUicFmVuB894GFOP+LdTM6OJ XY410IzRU+TXC4UG2WXST5rzVDndV116Aahyq10MBKkfrcpBjPEborkeB /5OEEVxmh6dmYDAMgZli8KbsdUTjESMhlTCxP4UqZjJdZgEp9QpN3oSof 8rIpry+rBjOhlqIlUR4z/Bs81BeW23gnW7t25KpMewNfvpQMMmqtD1x9C 9ERGjJ8tHQ3fqVVyUyXl/+2UStnHge4LsbGCryaYUPJGa98TQOfBH/qqj dGcpehH7BBe1fjvIJZuaNQQoZE5PnVM+6FkNrfGnOMRMOq13r9qk8GF5I g==; X-IronPort-AV: E=McAfee;i="6600,9927,10731"; a="422124076" X-IronPort-AV: E=Sophos;i="6.00,217,1681196400"; d="scan'208";a="422124076" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2023 23:55:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10731"; a="738263163" X-IronPort-AV: E=Sophos;i="6.00,217,1681196400"; d="scan'208";a="738263163" Received: from unknown (HELO dut222..) ([10.239.252.222]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2023 23:55:19 -0700 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 1/2] test_plans/pvp_virtio_user_4k_pages: modify testplan by DPDK changed Date: Mon, 5 Jun 2023 14:55:11 +0800 Message-Id: <20230605065511.564582-1-weix.ling@intel.com> X-Mailer: git-send-email 2.34.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 the DPDK commit a399d7b5(vfio: do not coalesce DMA mappings) changed, We need to delete the `--no-huge -m 1024` parameter when start the vhost-user as back-end side. So delete `--no-huge -m 1024` parameter in testplan. Signed-off-by: Wei Ling --- test_plans/pvp_virtio_user_4k_pages_test_plan.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test_plans/pvp_virtio_user_4k_pages_test_plan.rst b/test_plans/pvp_virtio_user_4k_pages_test_plan.rst index 1e8da05e..3849af42 100644 --- a/test_plans/pvp_virtio_user_4k_pages_test_plan.rst +++ b/test_plans/pvp_virtio_user_4k_pages_test_plan.rst @@ -18,7 +18,7 @@ Test Case1: Basic test vhost/virtio-user split ring with 4K-pages modprobe vfio-pci ./usertools/dpdk-devbind.py --bind=vfio-pci xx:xx.x - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 3-4 -n 4 -m 1024 --no-huge --file-prefix=vhost \ + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 3-4 -n 4 --file-prefix=vhost \ --vdev 'net_vhost0,iface=/tmp/vhost-net,queues=1' -- -i --no-numa --socket-num=0 testpmd>start @@ -44,7 +44,7 @@ Test Case2: Basic test vhost/virtio-user packed ring with 4K-pages modprobe vfio-pci ./usertools/dpdk-devbind.py --bind=vfio-pci xx:xx.x - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 3-4 -n 4 -m 1024 --no-huge --file-prefix=vhost \ + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 3-4 -n 4 --file-prefix=vhost \ --vdev 'net_vhost0,iface=/tmp/vhost-net,queues=1' -- -i --no-numa --socket-num=0 testpmd>start @@ -61,4 +61,4 @@ Test Case2: Basic test vhost/virtio-user packed ring with 4K-pages 4. Send packet with packet generator with different packet size,includes [64, 128, 256, 512, 1024, 1518], check the throughput with below command:: - testpmd>show port stats all \ No newline at end of file + testpmd>show port stats all From patchwork Mon Jun 5 06:55:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 128093 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 1ED6042C31; Mon, 5 Jun 2023 08:55:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1BE9D40A87; Mon, 5 Jun 2023 08:55:33 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 0FF9C4003C for ; Mon, 5 Jun 2023 08:55:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685948131; x=1717484131; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Q/Z7NeE8SSXpsv/T2JQVZYmtRlIR9Fpt9/PoMpX4iH4=; b=n0eQLVzrOMjeWQWxnwfGVgw1tfch1qciuust8AKXXnEAbdbn/GAn1eRp KfjKBGYvn5qp9eiT5Pu8FlHhCpZVSLE7SqOSqED7ki5H9cKj2MapKSvQv c9C7ln0Hmikw0jOqTS8KcCqW3O9+IdbAgsoGTj12ytMhNvGMUxSY2No3f xX1c0V5c/+pogGAKuU6mabTJ62/OndqDkeD0kHslvGDpSLTnGl2PQZlFr pPoVuxoueQKM4MzqGORi4/RjiGfpnvi5IfNOJ6m3hNUJE20g3tlm7Mfdi LXGSzsa/8VmgtjkdstobOfitmRIBw2DEU39PT//zrXBhRXszp3jBI8Evp w==; X-IronPort-AV: E=McAfee;i="6600,9927,10731"; a="422124090" X-IronPort-AV: E=Sophos;i="6.00,217,1681196400"; d="scan'208";a="422124090" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2023 23:55:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10731"; a="738263198" X-IronPort-AV: E=Sophos;i="6.00,217,1681196400"; d="scan'208";a="738263198" Received: from unknown (HELO dut222..) ([10.239.252.222]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2023 23:55:29 -0700 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 2/2] tests/pvp_virtio_user_4k_pages: modify testuite by DPDK changed Date: Mon, 5 Jun 2023 14:55:20 +0800 Message-Id: <20230605065520.564604-1-weix.ling@intel.com> X-Mailer: git-send-email 2.34.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.Fix the verify the test result PASS or FAIL from the config file issue. 2.As the DPDK commit a399d7b5(vfio: do not coalesce DMA mappings) changed, We need to delete the `--no-huge -m 1024` parameter when start the vhost-user as back-end side. So delete `--no-huge -m 1024` parameter in testsuite. Signed-off-by: Wei Ling --- tests/TestSuite_pvp_virtio_user_4k_pages.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_pvp_virtio_user_4k_pages.py b/tests/TestSuite_pvp_virtio_user_4k_pages.py index a89725e5..e8011fd3 100644 --- a/tests/TestSuite_pvp_virtio_user_4k_pages.py +++ b/tests/TestSuite_pvp_virtio_user_4k_pages.py @@ -159,10 +159,11 @@ class TestPvpVirtioUser4kPages(TestCase): self.result_table_add(table_row) # present test results to screen self.result_table_print() - self.verify( - "FAIL" not in self.test_result, - "Excessive gap between test results and expectations", - ) + for data in self.test_result.values(): + self.verify( + data["Status"] != "FAIL", + "Excessive gap between test results and expectations", + ) def start_testpmd_as_vhost(self): """ @@ -177,7 +178,7 @@ class TestPvpVirtioUser4kPages(TestCase): ports=[self.pci_info], vdevs=[vdev], ) - command_line_client = testcmd + eal_params + " -m 1024 --no-huge" + para + command_line_client = testcmd + eal_params + para self.vhost_user.send_expect(command_line_client, "testpmd> ", 120) self.vhost_user.send_expect("start", "testpmd> ", 120)