[dts] [PATCH v2] tests: add packed ring vectorized cases in vhost_pmd_xstats
Tu, Lijuan
lijuan.tu at intel.com
Mon Apr 27 09:50:49 CEST 2020
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Yinan
> Sent: Sunday, April 26, 2020 1:59 AM
> To: dts at dpdk.org
> Cc: Wang, Yinan <yinan.wang at intel.com>
> Subject: [dts] [PATCH v2] tests: add packed ring vectorized cases in
> vhost_pmd_xstats
>
> From: Wang Yinan <yinan.wang at intel.com>
>
> Signed-off-by: Wang Yinan <yinan.wang at intel.com>
> ---
> 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
More information about the dts
mailing list