From: Lingli Chen <linglix.chen@intel.com>
To: dts@dpdk.org
Cc: Lingli Chen <linglix.chen@intel.com>
Subject: [dts] [PATCH V1 10/10] tests/vm2vm_virtio_net_perf: Modify get_cbdma_ports_info
Date: Thu, 29 Jul 2021 17:24:04 +0000 [thread overview]
Message-ID: <20210729172404.90883-11-linglix.chen@intel.com> (raw)
In-Reply-To: <20210729172404.90883-1-linglix.chen@intel.com>
1.Modify get_cbdma_ports_info.
2.fix script issues.
Signed-off-by: Lingli Chen <linglix.chen@intel.com>
---
tests/TestSuite_vm2vm_virtio_net_perf.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/TestSuite_vm2vm_virtio_net_perf.py b/tests/TestSuite_vm2vm_virtio_net_perf.py
index 0ec542af..43e90b81 100644
--- a/tests/TestSuite_vm2vm_virtio_net_perf.py
+++ b/tests/TestSuite_vm2vm_virtio_net_perf.py
@@ -93,7 +93,7 @@ class TestVM2VMVirtioNetPerf(TestCase):
out = self.dut.send_expect('./usertools/dpdk-devbind.py --status-dev misc', '# ', 30)
device_info = out.split('\n')
for device in device_info:
- pci_info = re.search('\s*(0000:\d*:\d*.\d*)', device)
+ pci_info = re.search('\s*(0000:\S*:\d*.\d*)', device)
if pci_info is not None:
dev_info = pci_info.group(1)
# the numa id of ioat dev, only add the device which on same socket with nic dev
@@ -112,11 +112,11 @@ class TestVM2VMVirtioNetPerf(TestCase):
dmas_info = ''
for dmas in used_cbdma[0:int(cbdma_num/2)]:
number = used_cbdma[0:int(cbdma_num/2)].index(dmas)
- dmas = 'txq{}@{},'.format(number, dmas.replace('0000:', ''))
+ dmas = 'txq{}@{},'.format(number, dmas)
dmas_info += dmas
for dmas in used_cbdma[int(cbdma_num/2):]:
number = used_cbdma[int(cbdma_num/2):].index(dmas)
- dmas = 'txq{}@{},'.format(number, dmas.replace('0000:', ''))
+ dmas = 'txq{}@{},'.format(number, dmas)
dmas_info += dmas
self.dmas_info = dmas_info[:-1]
self.device_str = ' '.join(used_cbdma)
@@ -491,7 +491,7 @@ class TestVM2VMVirtioNetPerf(TestCase):
self.vm_args = "disable-modern=false,mrg_rxbuf=on,csum=on,guest_csum=on,host_tso4=on,guest_tso4=on,guest_ecn=on,packed=on"
self.prepare_test_env(cbdma=True, no_pci=False, client_mode=False, enable_queues=1, nb_cores=2,
server_mode=False, opt_queue=None, combined=False, rxq_txq=None)
- self.start_iperf_and_verify_vhost_xstats_info(iperf_mode='ufo')
+ self.start_iperf_and_verify_vhost_xstats_info(iperf_mode='tso')
def test_vm2vm_packed_ring_iperf_with_ufo(self):
"""
--
2.32.0
prev parent reply other threads:[~2021-07-29 9:23 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-29 17:23 [dts] [PATCH V1 00/10] fix script issues Lingli Chen
2021-07-29 9:38 ` Chen, LingliX
2021-07-29 11:28 ` Tu, Lijuan
2021-07-29 17:23 ` [dts] [PATCH V1 01/10] tests/vhost_cbdma: Modify get_cbdma_ports_info Lingli Chen
2021-07-30 1:55 ` Wang, Yinan
2021-07-29 17:23 ` [dts] [PATCH V1 02/10] tests/cbdma: " Lingli Chen
2021-07-29 17:23 ` [dts] [PATCH V1 03/10] tests/dpdk_gro_lib: " Lingli Chen
2021-07-29 17:23 ` [dts] [PATCH V1 04/10] tests/vhost_event_idx_interrupt: " Lingli Chen
2021-07-29 17:23 ` [dts] [PATCH V1 05/10] tests/vhost_user_interrupt: " Lingli Chen
2021-07-29 17:24 ` [dts] [PATCH V1 06/10] tests/vhost_virtio_pmd_interrupt: " Lingli Chen
2021-07-29 17:24 ` [dts] [PATCH V1 07/10] tests/vhost_virtio_user_interrupt: " Lingli Chen
2021-07-29 17:24 ` [dts] [PATCH V1 08/10] tests/virtio_event_idx_interrupt: " Lingli Chen
2021-07-29 17:24 ` [dts] [PATCH V1 09/10] tests/vm2vm_virtio_user: " Lingli Chen
2021-07-29 17:24 ` Lingli Chen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210729172404.90883-11-linglix.chen@intel.com \
--to=linglix.chen@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).