* [dts] [PATCH V2] add test case about virito1.1 inorder mac path
@ 2019-03-13 23:18 lihong
2019-03-14 6:49 ` Wang, Yinan
2019-03-14 9:50 ` Tu, Lijuan
0 siblings, 2 replies; 4+ messages in thread
From: lihong @ 2019-03-13 23:18 UTC (permalink / raw)
To: dts; +Cc: lihong
Add test path about virito1.1 inorder path
And optimization code
Signed-off-by: lihong <lihongx.ma@intel.com>
---
...vp_multi_paths_vhost_single_core_performance.py | 38 ++++++++++++++--------
1 file changed, 25 insertions(+), 13 deletions(-)
diff --git a/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py b/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py
index c085e6e..2162a23 100644
--- a/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py
+++ b/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py
@@ -31,7 +31,7 @@
"""
DPDK Test suite.
-Test PVP vhost single core performance using virtio_user on 7 tx/rx path.
+Test PVP vhost single core performance using virtio_user on 8 tx/rx path.
"""
import utils
@@ -46,21 +46,16 @@ class TestPVPMultiPathVhostPerformance(TestCase):
Run at the start of each test suite.
"""
self.frame_sizes = [64, 128, 256, 512, 1024, 1518]
- self.test_cycles = {'Mpps': {}, 'pct': {}}
self.core_config = "1S/5C/1T"
self.number_of_ports = 1
self.headers_size = HEADER_SIZE['eth'] + HEADER_SIZE['ip'] + \
HEADER_SIZE['udp']
self.dut_ports = self.dut.get_ports()
self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])
- ports = []
- for port in xrange(self.number_of_ports):
- ports.append(self.dut_ports[port])
self.core_list = self.dut.get_core_list(
self.core_config, socket=self.ports_socket)
self.core_list_user = self.core_list[0:3]
self.core_list_host = self.core_list[3:5]
- self.port_mask = utils.create_mask(ports)
self.core_mask_user = utils.create_mask(self.core_list_user)
self.core_mask_host = utils.create_mask(self.core_list_host)
if self.dut.cores[len(self.dut.cores) - 1]['socket'] == '0':
@@ -175,7 +170,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
self.close_all_session()
self.result_table_print()
- def test_perf_vhost_single_core_virtio11_no_mergeable(self):
+ def test_perf_vhost_single_core_virtio11_normal(self):
"""
performance for Vhost PVP virtio1.1 Normal Path.
"""
@@ -186,8 +181,25 @@ class TestPVPMultiPathVhostPerformance(TestCase):
for frame_size in self.frame_sizes:
self.start_vhost_testpmd()
self.start_virtio_testpmd(virtio_pmd_arg)
- self.send_and_verify("virtio_1.1_mergeable off", frame_size)
+ self.send_and_verify("virtio_1.1 normal", frame_size)
+ self.close_all_testpmd()
+ self.close_all_session()
+ self.result_table_print()
+
+ def test_perf_vhost_single_core_virtio11_inorder(self):
+ """
+ performance for Vhost PVP virtio 1.1 inorder Path.
+ """
+ virtio_pmd_arg = {"version": "in_order=1,packed_vq=1,mrg_rxbuf=0",
+ "path": "--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip"}
+ self.vhost_user = self.dut.new_session(suite="user")
+ self.vhost = self.dut.new_session(suite="vhost")
+ for frame_size in self.frame_sizes:
+ self.start_vhost_testpmd()
+ self.start_virtio_testpmd(virtio_pmd_arg)
+ self.send_and_verify("virtio_1.1 inorder", frame_size)
self.close_all_testpmd()
+
self.close_all_session()
self.result_table_print()
@@ -195,7 +207,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
"""
performance for Vhost PVP In_order mergeable Path.
"""
- virtio_pmd_arg = {"version": "in_order=1,mrg_rxbuf=1",
+ virtio_pmd_arg = {"version": "packed_vq=0,in_order=1,mrg_rxbuf=1",
"path": "--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip"}
self.vhost_user = self.dut.new_session(suite="user")
self.vhost = self.dut.new_session(suite="vhost")
@@ -211,7 +223,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
"""
performance for Vhost PVP In_order no_mergeable Path.
"""
- virtio_pmd_arg = {"version": "in_order=1,mrg_rxbuf=0",
+ virtio_pmd_arg = {"version": "packed_vq=0,in_order=1,mrg_rxbuf=0",
"path": "--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip"}
self.vhost_user = self.dut.new_session(suite="user")
self.vhost = self.dut.new_session(suite="vhost")
@@ -227,7 +239,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
"""
performance for Vhost PVP Mergeable Path.
"""
- virtio_pmd_arg = {"version": "in_order=0,mrg_rxbuf=1",
+ virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=1",
"path": "--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip"}
self.vhost_user = self.dut.new_session(suite="user")
self.vhost = self.dut.new_session(suite="vhost")
@@ -243,7 +255,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
"""
performance for Vhost PVP Normal Path.
"""
- virtio_pmd_arg = {"version": "in_order=0,mrg_rxbuf=0",
+ virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0",
"path": "--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip"}
self.vhost_user = self.dut.new_session(suite="user")
self.vhost = self.dut.new_session(suite="vhost")
@@ -259,7 +271,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
"""
performance for Vhost PVP Vector_RX Path
"""
- virtio_pmd_arg = {"version": "in_order=0,mrg_rxbuf=0",
+ virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0",
"path": "--tx-offloads=0x0"}
self.vhost_user = self.dut.new_session(suite="user")
self.vhost = self.dut.new_session(suite="vhost")
--
2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V2] add test case about virito1.1 inorder mac path
2019-03-13 23:18 [dts] [PATCH V2] add test case about virito1.1 inorder mac path lihong
@ 2019-03-14 6:49 ` Wang, Yinan
2019-03-14 6:59 ` Ma, LihongX
2019-03-14 9:50 ` Tu, Lijuan
1 sibling, 1 reply; 4+ messages in thread
From: Wang, Yinan @ 2019-03-14 6:49 UTC (permalink / raw)
To: Ma, LihongX, dts; +Cc: Ma, LihongX
Acked-by: Wang, Yinan <yinan.wang@intel.com>
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong
> Sent: 2019年3月14日 7:18
> To: dts@dpdk.org
> Cc: Ma, LihongX <lihongx.ma@intel.com>
> Subject: [dts] [PATCH V2] add test case about virito1.1 inorder mac path
>
> Add test path about virito1.1 inorder path And optimization code
>
> Signed-off-by: lihong <lihongx.ma@intel.com>
> ---
> ...vp_multi_paths_vhost_single_core_performance.py | 38
> ++++++++++++++--------
> 1 file changed, 25 insertions(+), 13 deletions(-)
>
> diff --git
> a/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py
> b/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py
> index c085e6e..2162a23 100644
> --- a/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py
> +++ b/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py
> @@ -31,7 +31,7 @@
>
> """
> DPDK Test suite.
> -Test PVP vhost single core performance using virtio_user on 7 tx/rx path.
> +Test PVP vhost single core performance using virtio_user on 8 tx/rx path.
> """
>
> import utils
> @@ -46,21 +46,16 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> Run at the start of each test suite.
> """
> self.frame_sizes = [64, 128, 256, 512, 1024, 1518]
> - self.test_cycles = {'Mpps': {}, 'pct': {}}
> self.core_config = "1S/5C/1T"
> self.number_of_ports = 1
> self.headers_size = HEADER_SIZE['eth'] + HEADER_SIZE['ip'] + \
> HEADER_SIZE['udp']
> self.dut_ports = self.dut.get_ports()
> self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])
> - ports = []
> - for port in xrange(self.number_of_ports):
> - ports.append(self.dut_ports[port])
> self.core_list = self.dut.get_core_list(
> self.core_config, socket=self.ports_socket)
> self.core_list_user = self.core_list[0:3]
> self.core_list_host = self.core_list[3:5]
> - self.port_mask = utils.create_mask(ports)
> self.core_mask_user = utils.create_mask(self.core_list_user)
> self.core_mask_host = utils.create_mask(self.core_list_host)
> if self.dut.cores[len(self.dut.cores) - 1]['socket'] == '0':
> @@ -175,7 +170,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> self.close_all_session()
> self.result_table_print()
>
> - def test_perf_vhost_single_core_virtio11_no_mergeable(self):
> + def test_perf_vhost_single_core_virtio11_normal(self):
> """
> performance for Vhost PVP virtio1.1 Normal Path.
> """
> @@ -186,8 +181,25 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> for frame_size in self.frame_sizes:
> self.start_vhost_testpmd()
> self.start_virtio_testpmd(virtio_pmd_arg)
> - self.send_and_verify("virtio_1.1_mergeable off", frame_size)
> + self.send_and_verify("virtio_1.1 normal", frame_size)
> + self.close_all_testpmd()
> + self.close_all_session()
> + self.result_table_print()
> +
> + def test_perf_vhost_single_core_virtio11_inorder(self):
> + """
> + performance for Vhost PVP virtio 1.1 inorder Path.
> + """
> + virtio_pmd_arg = {"version":
> "in_order=1,packed_vq=1,mrg_rxbuf=0",
> + "path": "--tx-offloads=0x0
> --enable-hw-vlan-strip --rss-ip"}
> + self.vhost_user = self.dut.new_session(suite="user")
> + self.vhost = self.dut.new_session(suite="vhost")
> + for frame_size in self.frame_sizes:
> + self.start_vhost_testpmd()
> + self.start_virtio_testpmd(virtio_pmd_arg)
> + self.send_and_verify("virtio_1.1 inorder", frame_size)
> self.close_all_testpmd()
> +
> self.close_all_session()
> self.result_table_print()
>
> @@ -195,7 +207,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> """
> performance for Vhost PVP In_order mergeable Path.
> """
> - virtio_pmd_arg = {"version": "in_order=1,mrg_rxbuf=1",
> + virtio_pmd_arg = {"version":
> + "packed_vq=0,in_order=1,mrg_rxbuf=1",
> "path": "--tx-offloads=0x0
> --enable-hw-vlan-strip --rss-ip"}
> self.vhost_user = self.dut.new_session(suite="user")
> self.vhost = self.dut.new_session(suite="vhost")
> @@ -211,7 +223,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> """
> performance for Vhost PVP In_order no_mergeable Path.
> """
> - virtio_pmd_arg = {"version": "in_order=1,mrg_rxbuf=0",
> + virtio_pmd_arg = {"version":
> + "packed_vq=0,in_order=1,mrg_rxbuf=0",
> "path": "--tx-offloads=0x0 --enable-hw-vlan-strip
> --rss-ip"}
> self.vhost_user = self.dut.new_session(suite="user")
> self.vhost = self.dut.new_session(suite="vhost")
> @@ -227,7 +239,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> """
> performance for Vhost PVP Mergeable Path.
> """
> - virtio_pmd_arg = {"version": "in_order=0,mrg_rxbuf=1",
> + virtio_pmd_arg = {"version":
> + "packed_vq=0,in_order=0,mrg_rxbuf=1",
> "path": "--tx-offloads=0x0
> --enable-hw-vlan-strip --rss-ip"}
> self.vhost_user = self.dut.new_session(suite="user")
> self.vhost = self.dut.new_session(suite="vhost")
> @@ -243,7 +255,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> """
> performance for Vhost PVP Normal Path.
> """
> - virtio_pmd_arg = {"version": "in_order=0,mrg_rxbuf=0",
> + virtio_pmd_arg = {"version":
> + "packed_vq=0,in_order=0,mrg_rxbuf=0",
> "path": "--tx-offloads=0x0
> --enable-hw-vlan-strip --rss-ip"}
> self.vhost_user = self.dut.new_session(suite="user")
> self.vhost = self.dut.new_session(suite="vhost")
> @@ -259,7 +271,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> """
> performance for Vhost PVP Vector_RX Path
> """
> - virtio_pmd_arg = {"version": "in_order=0,mrg_rxbuf=0",
> + virtio_pmd_arg = {"version":
> + "packed_vq=0,in_order=0,mrg_rxbuf=0",
> "path": "--tx-offloads=0x0"}
> self.vhost_user = self.dut.new_session(suite="user")
> self.vhost = self.dut.new_session(suite="vhost")
> --
> 2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V2] add test case about virito1.1 inorder mac path
2019-03-14 6:49 ` Wang, Yinan
@ 2019-03-14 6:59 ` Ma, LihongX
0 siblings, 0 replies; 4+ messages in thread
From: Ma, LihongX @ 2019-03-14 6:59 UTC (permalink / raw)
To: Wang, Yinan, dts
Tested-by:Ma,lihong <lihongx.ma@intel.com>
-----Original Message-----
From: Wang, Yinan
Sent: Thursday, March 14, 2019 2:50 PM
To: Ma, LihongX <lihongx.ma@intel.com>; dts@dpdk.org
Cc: Ma, LihongX <lihongx.ma@intel.com>
Subject: RE: [dts] [PATCH V2] add test case about virito1.1 inorder mac path
Acked-by: Wang, Yinan <yinan.wang@intel.com>
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong
> Sent: 2019年3月14日 7:18
> To: dts@dpdk.org
> Cc: Ma, LihongX <lihongx.ma@intel.com>
> Subject: [dts] [PATCH V2] add test case about virito1.1 inorder mac
> path
>
> Add test path about virito1.1 inorder path And optimization code
>
> Signed-off-by: lihong <lihongx.ma@intel.com>
> ---
> ...vp_multi_paths_vhost_single_core_performance.py | 38
> ++++++++++++++--------
> 1 file changed, 25 insertions(+), 13 deletions(-)
>
> diff --git
> a/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py
> b/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py
> index c085e6e..2162a23 100644
> --- a/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py
> +++ b/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py
> @@ -31,7 +31,7 @@
>
> """
> DPDK Test suite.
> -Test PVP vhost single core performance using virtio_user on 7 tx/rx path.
> +Test PVP vhost single core performance using virtio_user on 8 tx/rx path.
> """
>
> import utils
> @@ -46,21 +46,16 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> Run at the start of each test suite.
> """
> self.frame_sizes = [64, 128, 256, 512, 1024, 1518]
> - self.test_cycles = {'Mpps': {}, 'pct': {}}
> self.core_config = "1S/5C/1T"
> self.number_of_ports = 1
> self.headers_size = HEADER_SIZE['eth'] + HEADER_SIZE['ip'] + \
> HEADER_SIZE['udp']
> self.dut_ports = self.dut.get_ports()
> self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])
> - ports = []
> - for port in xrange(self.number_of_ports):
> - ports.append(self.dut_ports[port])
> self.core_list = self.dut.get_core_list(
> self.core_config, socket=self.ports_socket)
> self.core_list_user = self.core_list[0:3]
> self.core_list_host = self.core_list[3:5]
> - self.port_mask = utils.create_mask(ports)
> self.core_mask_user = utils.create_mask(self.core_list_user)
> self.core_mask_host = utils.create_mask(self.core_list_host)
> if self.dut.cores[len(self.dut.cores) - 1]['socket'] == '0':
> @@ -175,7 +170,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> self.close_all_session()
> self.result_table_print()
>
> - def test_perf_vhost_single_core_virtio11_no_mergeable(self):
> + def test_perf_vhost_single_core_virtio11_normal(self):
> """
> performance for Vhost PVP virtio1.1 Normal Path.
> """
> @@ -186,8 +181,25 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> for frame_size in self.frame_sizes:
> self.start_vhost_testpmd()
> self.start_virtio_testpmd(virtio_pmd_arg)
> - self.send_and_verify("virtio_1.1_mergeable off", frame_size)
> + self.send_and_verify("virtio_1.1 normal", frame_size)
> + self.close_all_testpmd()
> + self.close_all_session()
> + self.result_table_print()
> +
> + def test_perf_vhost_single_core_virtio11_inorder(self):
> + """
> + performance for Vhost PVP virtio 1.1 inorder Path.
> + """
> + virtio_pmd_arg = {"version":
> "in_order=1,packed_vq=1,mrg_rxbuf=0",
> + "path": "--tx-offloads=0x0
> --enable-hw-vlan-strip --rss-ip"}
> + self.vhost_user = self.dut.new_session(suite="user")
> + self.vhost = self.dut.new_session(suite="vhost")
> + for frame_size in self.frame_sizes:
> + self.start_vhost_testpmd()
> + self.start_virtio_testpmd(virtio_pmd_arg)
> + self.send_and_verify("virtio_1.1 inorder", frame_size)
> self.close_all_testpmd()
> +
> self.close_all_session()
> self.result_table_print()
>
> @@ -195,7 +207,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> """
> performance for Vhost PVP In_order mergeable Path.
> """
> - virtio_pmd_arg = {"version": "in_order=1,mrg_rxbuf=1",
> + virtio_pmd_arg = {"version":
> + "packed_vq=0,in_order=1,mrg_rxbuf=1",
> "path": "--tx-offloads=0x0
> --enable-hw-vlan-strip --rss-ip"}
> self.vhost_user = self.dut.new_session(suite="user")
> self.vhost = self.dut.new_session(suite="vhost")
> @@ -211,7 +223,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> """
> performance for Vhost PVP In_order no_mergeable Path.
> """
> - virtio_pmd_arg = {"version": "in_order=1,mrg_rxbuf=0",
> + virtio_pmd_arg = {"version":
> + "packed_vq=0,in_order=1,mrg_rxbuf=0",
> "path": "--tx-offloads=0x0
> --enable-hw-vlan-strip --rss-ip"}
> self.vhost_user = self.dut.new_session(suite="user")
> self.vhost = self.dut.new_session(suite="vhost")
> @@ -227,7 +239,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> """
> performance for Vhost PVP Mergeable Path.
> """
> - virtio_pmd_arg = {"version": "in_order=0,mrg_rxbuf=1",
> + virtio_pmd_arg = {"version":
> + "packed_vq=0,in_order=0,mrg_rxbuf=1",
> "path": "--tx-offloads=0x0
> --enable-hw-vlan-strip --rss-ip"}
> self.vhost_user = self.dut.new_session(suite="user")
> self.vhost = self.dut.new_session(suite="vhost")
> @@ -243,7 +255,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> """
> performance for Vhost PVP Normal Path.
> """
> - virtio_pmd_arg = {"version": "in_order=0,mrg_rxbuf=0",
> + virtio_pmd_arg = {"version":
> + "packed_vq=0,in_order=0,mrg_rxbuf=0",
> "path": "--tx-offloads=0x0
> --enable-hw-vlan-strip --rss-ip"}
> self.vhost_user = self.dut.new_session(suite="user")
> self.vhost = self.dut.new_session(suite="vhost")
> @@ -259,7 +271,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> """
> performance for Vhost PVP Vector_RX Path
> """
> - virtio_pmd_arg = {"version": "in_order=0,mrg_rxbuf=0",
> + virtio_pmd_arg = {"version":
> + "packed_vq=0,in_order=0,mrg_rxbuf=0",
> "path": "--tx-offloads=0x0"}
> self.vhost_user = self.dut.new_session(suite="user")
> self.vhost = self.dut.new_session(suite="vhost")
> --
> 2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V2] add test case about virito1.1 inorder mac path
2019-03-13 23:18 [dts] [PATCH V2] add test case about virito1.1 inorder mac path lihong
2019-03-14 6:49 ` Wang, Yinan
@ 2019-03-14 9:50 ` Tu, Lijuan
1 sibling, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2019-03-14 9:50 UTC (permalink / raw)
To: Ma, LihongX, dts; +Cc: Ma, LihongX
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong
> Sent: Thursday, March 14, 2019 7:18 AM
> To: dts@dpdk.org
> Cc: Ma, LihongX <lihongx.ma@intel.com>
> Subject: [dts] [PATCH V2] add test case about virito1.1 inorder mac path
>
> Add test path about virito1.1 inorder path And optimization code
>
> Signed-off-by: lihong <lihongx.ma@intel.com>
> ---
> ...vp_multi_paths_vhost_single_core_performance.py | 38 ++++++++++++++----
> ----
> 1 file changed, 25 insertions(+), 13 deletions(-)
>
> diff --git a/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py
> b/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py
> index c085e6e..2162a23 100644
> --- a/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py
> +++ b/tests/TestSuite_pvp_multi_paths_vhost_single_core_performance.py
> @@ -31,7 +31,7 @@
>
> """
> DPDK Test suite.
> -Test PVP vhost single core performance using virtio_user on 7 tx/rx path.
> +Test PVP vhost single core performance using virtio_user on 8 tx/rx path.
> """
>
> import utils
> @@ -46,21 +46,16 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> Run at the start of each test suite.
> """
> self.frame_sizes = [64, 128, 256, 512, 1024, 1518]
> - self.test_cycles = {'Mpps': {}, 'pct': {}}
> self.core_config = "1S/5C/1T"
> self.number_of_ports = 1
> self.headers_size = HEADER_SIZE['eth'] + HEADER_SIZE['ip'] + \
> HEADER_SIZE['udp']
> self.dut_ports = self.dut.get_ports()
> self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])
> - ports = []
> - for port in xrange(self.number_of_ports):
> - ports.append(self.dut_ports[port])
> self.core_list = self.dut.get_core_list(
> self.core_config, socket=self.ports_socket)
> self.core_list_user = self.core_list[0:3]
> self.core_list_host = self.core_list[3:5]
> - self.port_mask = utils.create_mask(ports)
> self.core_mask_user = utils.create_mask(self.core_list_user)
> self.core_mask_host = utils.create_mask(self.core_list_host)
> if self.dut.cores[len(self.dut.cores) - 1]['socket'] == '0':
> @@ -175,7 +170,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> self.close_all_session()
> self.result_table_print()
>
> - def test_perf_vhost_single_core_virtio11_no_mergeable(self):
> + def test_perf_vhost_single_core_virtio11_normal(self):
> """
> performance for Vhost PVP virtio1.1 Normal Path.
> """
> @@ -186,8 +181,25 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> for frame_size in self.frame_sizes:
> self.start_vhost_testpmd()
> self.start_virtio_testpmd(virtio_pmd_arg)
> - self.send_and_verify("virtio_1.1_mergeable off", frame_size)
> + self.send_and_verify("virtio_1.1 normal", frame_size)
> + self.close_all_testpmd()
> + self.close_all_session()
> + self.result_table_print()
> +
> + def test_perf_vhost_single_core_virtio11_inorder(self):
> + """
> + performance for Vhost PVP virtio 1.1 inorder Path.
> + """
> + virtio_pmd_arg = {"version": "in_order=1,packed_vq=1,mrg_rxbuf=0",
> + "path": "--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip"}
> + self.vhost_user = self.dut.new_session(suite="user")
> + self.vhost = self.dut.new_session(suite="vhost")
> + for frame_size in self.frame_sizes:
> + self.start_vhost_testpmd()
> + self.start_virtio_testpmd(virtio_pmd_arg)
> + self.send_and_verify("virtio_1.1 inorder", frame_size)
> self.close_all_testpmd()
> +
> self.close_all_session()
> self.result_table_print()
>
> @@ -195,7 +207,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> """
> performance for Vhost PVP In_order mergeable Path.
> """
> - virtio_pmd_arg = {"version": "in_order=1,mrg_rxbuf=1",
> + virtio_pmd_arg = {"version":
> + "packed_vq=0,in_order=1,mrg_rxbuf=1",
> "path": "--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip"}
> self.vhost_user = self.dut.new_session(suite="user")
> self.vhost = self.dut.new_session(suite="vhost")
> @@ -211,7 +223,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> """
> performance for Vhost PVP In_order no_mergeable Path.
> """
> - virtio_pmd_arg = {"version": "in_order=1,mrg_rxbuf=0",
> + virtio_pmd_arg = {"version":
> + "packed_vq=0,in_order=1,mrg_rxbuf=0",
> "path": "--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip"}
> self.vhost_user = self.dut.new_session(suite="user")
> self.vhost = self.dut.new_session(suite="vhost")
> @@ -227,7 +239,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> """
> performance for Vhost PVP Mergeable Path.
> """
> - virtio_pmd_arg = {"version": "in_order=0,mrg_rxbuf=1",
> + virtio_pmd_arg = {"version":
> + "packed_vq=0,in_order=0,mrg_rxbuf=1",
> "path": "--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip"}
> self.vhost_user = self.dut.new_session(suite="user")
> self.vhost = self.dut.new_session(suite="vhost")
> @@ -243,7 +255,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> """
> performance for Vhost PVP Normal Path.
> """
> - virtio_pmd_arg = {"version": "in_order=0,mrg_rxbuf=0",
> + virtio_pmd_arg = {"version":
> + "packed_vq=0,in_order=0,mrg_rxbuf=0",
> "path": "--tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip"}
> self.vhost_user = self.dut.new_session(suite="user")
> self.vhost = self.dut.new_session(suite="vhost")
> @@ -259,7 +271,7 @@ class TestPVPMultiPathVhostPerformance(TestCase):
> """
> performance for Vhost PVP Vector_RX Path
> """
> - virtio_pmd_arg = {"version": "in_order=0,mrg_rxbuf=0",
> + virtio_pmd_arg = {"version":
> + "packed_vq=0,in_order=0,mrg_rxbuf=0",
> "path": "--tx-offloads=0x0"}
> self.vhost_user = self.dut.new_session(suite="user")
> self.vhost = self.dut.new_session(suite="vhost")
> --
> 2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-03-14 9:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-13 23:18 [dts] [PATCH V2] add test case about virito1.1 inorder mac path lihong
2019-03-14 6:49 ` Wang, Yinan
2019-03-14 6:59 ` Ma, LihongX
2019-03-14 9:50 ` Tu, Lijuan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).