diff mbox series

[V1,2/2] tests/vm2vm_virtio_net_perf: add tso=1 parameter when start virtio backend side

Message ID 20220920075004.673785-1-weix.ling@intel.com (mailing list archive)
State Accepted
Headers show
Series add tso=1 parameter as DPDK change | expand

Checks

Context Check Description
ci/Intel-dts-suite-test fail Testing issues
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-doc-test success Testing OK

Commit Message

Wei Ling Sept. 20, 2022, 7:50 a.m. UTC
As DPDK commit 6d7046215a(net/vhost: fix TSO feature default disablement),
add tso=1 parameter when start virtio backend side to open the TSO
feature.

Signed-off-by: Wei Ling <weix.ling@intel.com>
---
 tests/TestSuite_vm2vm_virtio_net_perf.py | 39 +++++++++++-------------
 1 file changed, 18 insertions(+), 21 deletions(-)

Comments

Tu, Lijuan Oct. 8, 2022, 6:37 a.m. UTC | #1
On Tue, 20 Sep 2022 03:50:04 -0400, Wei Ling <weix.ling@intel.com> wrote:
> As DPDK commit 6d7046215a(net/vhost: fix TSO feature default disablement),
> add tso=1 parameter when start virtio backend side to open the TSO
> feature.
> 
> Signed-off-by: Wei Ling <weix.ling@intel.com>


Series applied, thanks
diff mbox series

Patch

diff --git a/tests/TestSuite_vm2vm_virtio_net_perf.py b/tests/TestSuite_vm2vm_virtio_net_perf.py
index ec659519..aef00404 100644
--- a/tests/TestSuite_vm2vm_virtio_net_perf.py
+++ b/tests/TestSuite_vm2vm_virtio_net_perf.py
@@ -68,40 +68,35 @@  class TestVM2VMVirtioNetPerf(TestCase):
         enable_queues=1,
         nb_cores=2,
         rxq_txq=None,
-        exchange_cbdma=False,
     ):
         """
         launch the testpmd with different parameters
         """
         testcmd = self.app_testpmd_path + " "
         if not client_mode:
-            vdev1 = "--vdev 'net_vhost0,iface=%s/vhost-net0,queues=%d' " % (
+            vdev1 = "--vdev 'net_vhost0,iface=%s/vhost-net0,queues=%d,tso=1' " % (
                 self.base_dir,
                 enable_queues,
             )
-            vdev2 = "--vdev 'net_vhost1,iface=%s/vhost-net1,queues=%d' " % (
+            vdev2 = "--vdev 'net_vhost1,iface=%s/vhost-net1,queues=%d,tso=1' " % (
                 self.base_dir,
                 enable_queues,
             )
         else:
-            vdev1 = "--vdev 'net_vhost0,iface=%s/vhost-net0,client=1,queues=%d' " % (
-                self.base_dir,
-                enable_queues,
+            vdev1 = (
+                "--vdev 'net_vhost0,iface=%s/vhost-net0,client=1,queues=%d,tso=1' "
+                % (
+                    self.base_dir,
+                    enable_queues,
+                )
             )
-            vdev2 = "--vdev 'net_vhost1,iface=%s/vhost-net1,client=1,queues=%d' " % (
-                self.base_dir,
-                enable_queues,
+            vdev2 = (
+                "--vdev 'net_vhost1,iface=%s/vhost-net1,client=1,queues=%d,tso=1' "
+                % (
+                    self.base_dir,
+                    enable_queues,
+                )
             )
-        if exchange_cbdma:
-            vdev1 = "--vdev 'net_vhost0,iface=%s/vhost-net0,client=1,queues=%d' " % (
-                self.base_dir,
-                enable_queues,
-            )
-            vdev2 = "--vdev 'net_vhost1,iface=%s/vhost-net1,client=1,queues=%d' " % (
-                self.base_dir,
-                enable_queues,
-            )
-
         eal_params = self.dut.create_eal_parameters(
             cores=self.cores_list, prefix="vhost", no_pci=no_pci
         )
@@ -256,8 +251,10 @@  class TestVM2VMVirtioNetPerf(TestCase):
         out_tx = self.vhost.send_expect("show port xstats 0", "testpmd> ", 20)
         out_rx = self.vhost.send_expect("show port xstats 1", "testpmd> ", 20)
 
-        rx_info = re.search("rx_size_1523_to_max_packets:\s*(\d*)", out_rx)
-        tx_info = re.search("tx_size_1523_to_max_packets:\s*(\d*)", out_tx)
+        # rx_info = re.search("rx_size_1523_to_max_packets:\s*(\d*)", out_rx)
+        rx_info = re.search("rx_q0_size_1519_max_packets:\s*(\d*)", out_rx)
+        # tx_info = re.search("tx_size_1523_to_max_packets:\s*(\d*)", out_tx)
+        tx_info = re.search("tx_q0_size_1519_max_packets:\s*(\d*)", out_tx)
 
         self.verify(
             int(rx_info.group(1)) > 0, "Port 1 not receive packet greater than 1522"