test suite reviews and discussions
 help / color / Atom feed
* Re: [dts] [PATCH V1] tests/TestSuite_dpdk_gro_lib: add test_vhost_gro_with_2queues_tcp_lightmode script
  2020-09-29  6:20 [dts] [PATCH V1] tests/TestSuite_dpdk_gro_lib: add test_vhost_gro_with_2queues_tcp_lightmode script JiangYuX
@ 2020-09-29  6:20 ` Jiang, YuX
  2020-10-09  1:04 ` Wang, Yinan
  2020-10-12  8:53 ` Tu, Lijuan
  2 siblings, 0 replies; 4+ messages in thread
From: Jiang, YuX @ 2020-09-29  6:20 UTC (permalink / raw)
  To: dts; +Cc: Jiang, YuX

[-- Attachment #1: Type: text/plain, Size: 353 bytes --]

Tested-by: Jiang, YuX <yux.jiang@intel.com>

    Best Regards
    Jiang yu


> -----Original Message-----
> From: Jiang, YuX
> Sent: Tuesday, September 29, 2020 2:21 PM
> To: dts@dpdk.org
> Cc: Jiang, YuX <yux.jiang@intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_dpdk_gro_lib: add
> test_vhost_gro_with_2queues_tcp_lightmode script

[-- Attachment #2: TestDPDKGROLib.log --]
[-- Type: application/octet-stream, Size: 242441 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dts] [PATCH V1] tests/TestSuite_dpdk_gro_lib: add test_vhost_gro_with_2queues_tcp_lightmode script
@ 2020-09-29  6:20 JiangYuX
  2020-09-29  6:20 ` Jiang, YuX
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: JiangYuX @ 2020-09-29  6:20 UTC (permalink / raw)
  To: dts; +Cc: JiangYu

From: JiangYu <yux.jiang@intel.com>

Add test_vhost_gro_with_2queues_tcp_lightmode

Signed-off-by: JiangYu <yux.jiang@intel.com>
---
 tests/TestSuite_dpdk_gro_lib.py | 54 ++++++++++++++++++++++++++++++++++++-----
 1 file changed, 48 insertions(+), 6 deletions(-)

diff --git a/tests/TestSuite_dpdk_gro_lib.py b/tests/TestSuite_dpdk_gro_lib.py
index 3f23e3e..1a4910a 100644
--- a/tests/TestSuite_dpdk_gro_lib.py
+++ b/tests/TestSuite_dpdk_gro_lib.py
@@ -298,8 +298,8 @@ class TestDPDKGROLib(TestCase):
         vm_params_1['driver'] = 'vhost-user'
         vm_params_1['opt_path'] = self.base_dir + '/vhost-net'
         vm_params_1['opt_mac'] = self.virtio_mac1
+        vm_params_1['opt_queue'] = queue
         if mode == 5:
-            vm_params_1['opt_queue'] = queue
             vm_params_1['opt_settings'] = 'mrg_rxbuf=on,csum=on,gso=on,host_tso4=on,guest_tso4=on,mq=on,vectors=15'
         else:
             vm_params_1['opt_settings'] = 'mrg_rxbuf=on,csum=on,gso=on,host_tso4=on,guest_tso4=on'
@@ -466,15 +466,57 @@ class TestDPDKGROLib(TestCase):
             (self.virtio_ip1), '', 180)
         time.sleep(30)
         print(out)
-        tc4_perfdata = self.iperf_result_verify('GRO lib')
+        perfdata = self.iperf_result_verify('GRO lib')
         print(("the GRO lib %s " % (self.output_result)))
         #self.dut.send_expect('rm /root/iperf_client.log', '#', 10)
         self.quit_testpmd()
         self.dut.send_expect("killall -s INT qemu-system-x86_64", "#")
-        tc1_perfdata = self.dut.send_expect("cat /root/dpdk_gro_lib_on_iperf_tc1.log", "#")
-        self.verify("No such file or directory" not in tc1_perfdata, "Cannot find dpdk_gro_lib_on_iperf_tc1.log, please run test_vhost_gro_tcp_lightmode firstly")
-        if tc1_perfdata:
-            self.verify(float(tc4_perfdata) > float(tc1_perfdata), "TestFailed: W/cbdma iperf data is %s Kbits/sec, W/O cbdma iperf data is %s Kbits/sec" %(tc4_perfdata, tc1_perfdata))
+        exp_perfdata = self.dut.send_expect("cat /root/dpdk_gro_lib_on_iperf_tc5.log", "#")
+        self.verify("No such file or directory" not in exp_perfdata, "Cannot find dpdk_gro_lib_on_iperf_tc5.log, please run test_vhost_gro_with_2queues_tcp_lightmode firstly")
+        if exp_perfdata:
+            self.verify(float(perfdata) > float(exp_perfdata), "TestFailed: W/cbdma iperf data is %s Kbits/sec, W/O cbdma iperf data is %s Kbits/sec" %(perfdata, exp_perfdata))
+
+    def test_vhost_gro_with_2queues_tcp_lightmode(self):
+        """
+        Test Case5: DPDK GRO test with 2 queues using tcp/ipv4 traffic
+        """
+        self.config_kernel_nic_host(0)
+        self.launch_testpmd_gro_on(mode=1, queue=2)
+        self.start_vm(mode=1, queue=2)
+        time.sleep(5)
+        self.dut.get_session_output(timeout=2)
+        # Get the virtio-net device name
+        for port in self.vm1_dut.ports_info:
+            self.vm1_intf = port['intf']
+        # Start the Iperf test
+        self.vm1_dut.send_expect('ifconfig -a', '#', 30)
+        self.vm1_dut.send_expect(
+            'ifconfig %s %s' %
+            (self.vm1_intf, self.virtio_ip1), '#', 10)
+        self.vm1_dut.send_expect('ifconfig %s up' % self.vm1_intf, '#', 10)
+        self.vm1_dut.send_expect(
+            'ethtool -K %s gro off' % (self.vm1_intf), '#', 10)
+        self.vm1_dut.send_expect('iperf -s', '', 10)
+        self.dut.send_expect('rm /root/iperf_client.log', '#', 10)
+        self.dut.send_expect(
+            'ip netns exec ns1 iperf -c %s -i 2 -t 60 -f g -m > /root/iperf_client.log &' %
+            (self.virtio_ip1), '', 180)
+        time.sleep(60)
+        perfdata = self.iperf_result_verify('GRO lib')
+        print(("the GRO lib %s " % (self.output_result)))
+        self.dut.send_expect('rm /root/iperf_client.log', '#', 10)
+        # Turn off DPDK GRO lib and Kernel GRO off
+        self.set_testpmd_gro_off()
+        self.dut.send_expect(
+            'ip netns exec ns1 iperf -c %s -i 2 -t 60 -f g -m > /root/iperf_client.log &' %
+            (self.virtio_ip1), '', 180)
+        time.sleep(60)
+        self.iperf_result_verify('Kernel GRO')
+        print(("the Kernel GRO %s " % (self.output_result)))
+        self.dut.send_expect('rm /root/iperf_client.log', '#', 10)
+        self.quit_testpmd()
+        self.dut.send_expect("killall -s INT qemu-system-x86_64", "#")
+        self.dut.send_expect('echo %s > /root/dpdk_gro_lib_on_iperf_tc5.log' % perfdata, '#', 10)
 
     def tear_down(self):
         """
-- 
2.7.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1] tests/TestSuite_dpdk_gro_lib: add test_vhost_gro_with_2queues_tcp_lightmode script
  2020-09-29  6:20 [dts] [PATCH V1] tests/TestSuite_dpdk_gro_lib: add test_vhost_gro_with_2queues_tcp_lightmode script JiangYuX
  2020-09-29  6:20 ` Jiang, YuX
@ 2020-10-09  1:04 ` Wang, Yinan
  2020-10-12  8:53 ` Tu, Lijuan
  2 siblings, 0 replies; 4+ messages in thread
From: Wang, Yinan @ 2020-10-09  1:04 UTC (permalink / raw)
  To: Jiang, YuX, dts; +Cc: Jiang, YuX

Acked-by: Wang, Yinan <yinan.wang@intel.com>


> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of JiangYuX
> Sent: 2020?9?29? 14:21
> To: dts@dpdk.org
> Cc: Jiang, YuX <yux.jiang@intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_dpdk_gro_lib: add
> test_vhost_gro_with_2queues_tcp_lightmode script
> 
> From: JiangYu <yux.jiang@intel.com>
> 
> Add test_vhost_gro_with_2queues_tcp_lightmode
> 
> Signed-off-by: JiangYu <yux.jiang@intel.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1] tests/TestSuite_dpdk_gro_lib: add test_vhost_gro_with_2queues_tcp_lightmode script
  2020-09-29  6:20 [dts] [PATCH V1] tests/TestSuite_dpdk_gro_lib: add test_vhost_gro_with_2queues_tcp_lightmode script JiangYuX
  2020-09-29  6:20 ` Jiang, YuX
  2020-10-09  1:04 ` Wang, Yinan
@ 2020-10-12  8:53 ` Tu, Lijuan
  2 siblings, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2020-10-12  8:53 UTC (permalink / raw)
  To: Jiang, YuX, dts; +Cc: Jiang, YuX

> Add test_vhost_gro_with_2queues_tcp_lightmode
> 
> Signed-off-by: JiangYu <yux.jiang@intel.com>

Applied

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, back to index

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-29  6:20 [dts] [PATCH V1] tests/TestSuite_dpdk_gro_lib: add test_vhost_gro_with_2queues_tcp_lightmode script JiangYuX
2020-09-29  6:20 ` Jiang, YuX
2020-10-09  1:04 ` Wang, Yinan
2020-10-12  8:53 ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox