From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C463DA00C2; Sun, 26 Apr 2020 03:05:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6CE181DBF; Sun, 26 Apr 2020 03:05:14 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 93BE11B53 for ; Sun, 26 Apr 2020 03:05:12 +0200 (CEST) IronPort-SDR: x/wW9r/szli3c600ZwmkIzgRe5dMhs0SyrQz2LEhv34miKHR4PPh9WGVZoASjDoabkRyrNDscA 3AbHvjsgdcIA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2020 18:05:11 -0700 IronPort-SDR: EUl8a9YD0UObWclcMM3abgF1fJbTfqaUsdv2IuUQiWmp+2q+XiGzoEZCuNHYaYL9Ez+H5WQj1+ e79Q7nZ8eI7A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,318,1583222400"; d="scan'208";a="301970613" Received: from dpdk-yinan-purley.sh.intel.com ([10.67.117.227]) by FMSMGA003.fm.intel.com with ESMTP; 25 Apr 2020 18:05:10 -0700 From: Yinan To: dts@dpdk.org Cc: Wang Yinan Date: Sat, 25 Apr 2020 17:59:09 +0000 Message-Id: <20200425175909.49518-1-yinan.wang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH v2] tests: add packed ring vectorized cases in vhost_pmd_xstats 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" From: Wang Yinan Signed-off-by: Wang Yinan --- tests/TestSuite_vhost_pmd_xstats.py | 35 ++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_vhost_pmd_xstats.py b/tests/TestSuite_vhost_pmd_xstats.py index ad9e245..3873213 100755 --- a/tests/TestSuite_vhost_pmd_xstats.py +++ b/tests/TestSuite_vhost_pmd_xstats.py @@ -182,7 +182,7 @@ class TestVhostPmdXstats(TestCase): date_new = date_old + datetime.timedelta(minutes=2) while (1): date_now = datetime.datetime.now() - scope = 'broadcast' + scope = 'multicast' self.dmac = '01:00:00:33:00:01' self.scapy_send_packet(64, self.dmac, 1) if date_now >= date_new: @@ -216,8 +216,8 @@ class TestVhostPmdXstats(TestCase): """ performance for Vhost PVP virtio1.1 inorder no_mergeable Path. """ - virtio_pmd_arg = {"version": "in_order=1,packed_vq=1,mrg_rxbuf=0", - "path": "--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip"} + virtio_pmd_arg = {"version": "in_order=1,packed_vq=1,mrg_rxbuf=0,vectorized=1", + "path": "--rx-offloads=0x10 --enable-hw-vlan-strip --rss-ip"} self.start_vhost_testpmd() self.start_virtio_testpmd(virtio_pmd_arg) self.xstats_number_and_type_verify() @@ -227,7 +227,7 @@ class TestVhostPmdXstats(TestCase): """ performance for Vhost PVP virtio1.1 inorder no_mergeable Path. """ - virtio_pmd_arg = {"version": "in_order=1,packed_vq=1,mrg_rxbuf=0,lro=0", + virtio_pmd_arg = {"version": "in_order=1,packed_vq=1,mrg_rxbuf=0,vectorized=1", "path": "--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip"} self.start_vhost_testpmd() self.start_virtio_testpmd(virtio_pmd_arg) @@ -246,6 +246,29 @@ class TestVhostPmdXstats(TestCase): self.send_verify(scope, self.scapy_num) self.close_all_testpmd() + def test_vhost_xstats_virtio11_vector_ringsize_not_powerof_2(self): + """ + performance for Vhost PVP virtio1.1 inorder no_mergeable Path. + """ + virtio_pmd_arg = {"version": "in_order=1,packed_vq=1,mrg_rxbuf=0,vectorized=1,queue_size=1221", + "path": "--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --rxd=1221 --txd=1221"} + self.start_vhost_testpmd() + self.start_virtio_testpmd(virtio_pmd_arg) + self.xstats_number_and_type_verify() + # stability test with basic packets number check + self.scapy_num = 0 + date_old = datetime.datetime.now() + date_new = date_old + datetime.timedelta(minutes=2) + while (1): + date_now = datetime.datetime.now() + scope = 'broadcast' + self.dmac = 'ff:ff:ff:ff:ff:ff' + self.scapy_send_packet(64, self.dmac, 1) + if date_now >= date_new: + break + self.send_verify(scope, self.scapy_num) + self.close_all_testpmd() + def test_vhost_xstats_inorder_mergeable(self): """ performance for Vhost PVP In_order mergeable Path. @@ -283,7 +306,7 @@ class TestVhostPmdXstats(TestCase): """ performance for Vhost PVP no_mergeable Path. """ - virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0", + virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1", "path": "--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip"} self.start_vhost_testpmd() self.start_virtio_testpmd(virtio_pmd_arg) @@ -294,7 +317,7 @@ class TestVhostPmdXstats(TestCase): """ performance for Vhost PVP Vector_RX Path """ - virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0", + virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1", "path": "--tx-offloads=0x0"} self.start_vhost_testpmd() self.start_virtio_testpmd(virtio_pmd_arg) -- 2.17.1