From: Wei Ling <weix.ling@intel.com>
To: dts@dpdk.org
Cc: Wei Ling <weix.ling@intel.com>
Subject: [dts][PATCH V3 2/2] tests/virtio_event_idx_interrupt_cbdma: modify the dmas parameter by DPDK changed
Date: Tue, 22 Nov 2022 15:13:31 +0800 [thread overview]
Message-ID: <20221122071331.2895321-1-weix.ling@intel.com> (raw)
From DPDK-22.11, the dmas parameter have changed, so modify the dmas
parameter in the testuite.
Signed-off-by: Wei Ling <weix.ling@intel.com>
---
...tSuite_virtio_event_idx_interrupt_cbdma.py | 244 ++++++++++--------
1 file changed, 140 insertions(+), 104 deletions(-)
diff --git a/tests/TestSuite_virtio_event_idx_interrupt_cbdma.py b/tests/TestSuite_virtio_event_idx_interrupt_cbdma.py
index c5d7af18..20919131 100644
--- a/tests/TestSuite_virtio_event_idx_interrupt_cbdma.py
+++ b/tests/TestSuite_virtio_event_idx_interrupt_cbdma.py
@@ -260,9 +260,12 @@ class TestVirtioIdxInterruptCbdma(TestCase):
Test Case1: Split ring virtio-pci driver reload test with CBDMA enable
"""
self.get_cbdma_ports_info_and_bind_to_dpdk(cbdma_num=1)
- lcore_dma = "lcore%s@%s" % (self.vhost_core_list[1], self.cbdma_list[0])
- vhost_param = "--nb-cores=1 --txd=1024 --rxd=1024 --lcore-dma=[%s]" % lcore_dma
- vhost_eal_param = "--vdev 'net_vhost,iface=vhost-net,queues=1,dmas=[txq0;rxq0]'"
+ dmas = "txq0@%s;rxq0@%s" % (
+ self.cbdma_list[0],
+ self.cbdma_list[0],
+ )
+ vhost_param = "--nb-cores=1 --txd=1024 --rxd=1024"
+ vhost_eal_param = "--vdev 'net_vhost,iface=vhost-net,queues=1,dmas=[%s]'" % dmas
ports = self.cbdma_list
ports.append(self.dut.ports_info[0]["pci"])
self.vhost_pmd.start_testpmd(
@@ -287,63 +290,78 @@ class TestVirtioIdxInterruptCbdma(TestCase):
Test Case2: Split ring 16 queues virtio-net event idx interrupt mode test with cbdma enable
"""
self.get_cbdma_ports_info_and_bind_to_dpdk(cbdma_num=16, allow_diff_socket=True)
- lcore_dma = (
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s"
+ dmas = (
+ "txq0@%s;"
+ "txq1@%s;"
+ "txq2@%s;"
+ "txq3@%s;"
+ "txq4@%s;"
+ "txq5@%s;"
+ "txq6@%s;"
+ "txq7@%s;"
+ "txq8@%s;"
+ "txq9@%s;"
+ "txq10@%s;"
+ "txq11@%s;"
+ "txq12@%s;"
+ "txq13@%s;"
+ "txq14@%s;"
+ "txq15@%s;"
+ "rxq0@%s;"
+ "rxq1@%s;"
+ "rxq2@%s;"
+ "rxq3@%s;"
+ "rxq4@%s;"
+ "rxq5@%s;"
+ "rxq6@%s;"
+ "rxq7@%s;"
+ "rxq8@%s;"
+ "rxq9@%s;"
+ "rxq10@%s;"
+ "rxq11@%s;"
+ "rxq12@%s;"
+ "rxq13@%s;"
+ "rxq14@%s;"
+ "rxq15@%s"
% (
- self.vhost_core_list[1],
self.cbdma_list[0],
- self.vhost_core_list[2],
+ self.cbdma_list[0],
+ self.cbdma_list[0],
+ self.cbdma_list[0],
+ self.cbdma_list[0],
+ self.cbdma_list[0],
+ self.cbdma_list[0],
+ self.cbdma_list[0],
+ self.cbdma_list[1],
+ self.cbdma_list[1],
+ self.cbdma_list[1],
+ self.cbdma_list[1],
+ self.cbdma_list[1],
+ self.cbdma_list[1],
+ self.cbdma_list[1],
self.cbdma_list[1],
- self.vhost_core_list[3],
self.cbdma_list[2],
- self.vhost_core_list[4],
+ self.cbdma_list[2],
+ self.cbdma_list[2],
+ self.cbdma_list[2],
+ self.cbdma_list[2],
+ self.cbdma_list[2],
+ self.cbdma_list[2],
+ self.cbdma_list[2],
+ self.cbdma_list[3],
+ self.cbdma_list[3],
+ self.cbdma_list[3],
+ self.cbdma_list[3],
+ self.cbdma_list[3],
+ self.cbdma_list[3],
+ self.cbdma_list[3],
self.cbdma_list[3],
- self.vhost_core_list[5],
- self.cbdma_list[4],
- self.vhost_core_list[6],
- self.cbdma_list[5],
- self.vhost_core_list[7],
- self.cbdma_list[6],
- self.vhost_core_list[8],
- self.cbdma_list[7],
- self.vhost_core_list[9],
- self.cbdma_list[8],
- self.vhost_core_list[10],
- self.cbdma_list[9],
- self.vhost_core_list[11],
- self.cbdma_list[10],
- self.vhost_core_list[12],
- self.cbdma_list[11],
- self.vhost_core_list[13],
- self.cbdma_list[12],
- self.vhost_core_list[14],
- self.cbdma_list[13],
- self.vhost_core_list[15],
- self.cbdma_list[14],
- self.vhost_core_list[16],
- self.cbdma_list[15],
)
)
- vhost_param = (
- "--nb-cores=16 --txd=1024 --rxd=1024 --rxq=16 --txq=16 --lcore-dma=[%s]"
- % lcore_dma
+ vhost_param = "--nb-cores=16 --txd=1024 --rxd=1024 --rxq=16 --txq=16"
+ vhost_eal_param = (
+ "--vdev 'net_vhost,iface=vhost-net,queues=16,client=1,dmas=[%s]'" % dmas
)
- vhost_eal_param = "--vdev 'net_vhost,iface=vhost-net,queues=16,client=1,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7;txq8;txq9;txq10;txq11;txq12;txq13;txq14;txq15;rxq0;rxq1;rxq2;rxq3;rxq4;rxq5;rxq6;rxq7;rxq8;rxq9;rxq10;rxq11;rxq12;rxq13;rxq14;rxq15]'"
ports = self.cbdma_list
ports.append(self.dut.ports_info[0]["pci"])
self.vhost_pmd.start_testpmd(
@@ -369,9 +387,12 @@ class TestVirtioIdxInterruptCbdma(TestCase):
Test Case3: Packed ring virtio-pci driver reload test with CBDMA enable
"""
self.get_cbdma_ports_info_and_bind_to_dpdk(cbdma_num=1)
- lcore_dma = "lcore%s@%s" % (self.vhost_core_list[1], self.cbdma_list[0])
- vhost_param = "--nb-cores=1 --txd=1024 --rxd=1024 --lcore-dma=[%s]" % lcore_dma
- vhost_eal_param = "--vdev 'net_vhost,iface=vhost-net,queues=1,dmas=[txq0;rxq0]'"
+ dmas = "txq0@%s;rxq0@%s" % (
+ self.cbdma_list[0],
+ self.cbdma_list[0],
+ )
+ vhost_param = "--nb-cores=1 --txd=1024 --rxd=1024"
+ vhost_eal_param = "--vdev 'net_vhost,iface=vhost-net,queues=1,dmas=[%s]'" % dmas
ports = self.cbdma_list
ports.append(self.dut.ports_info[0]["pci"])
self.vhost_pmd.start_testpmd(
@@ -396,63 +417,78 @@ class TestVirtioIdxInterruptCbdma(TestCase):
Test Case4: Packed ring 16 queues virtio-net event idx interrupt mode test with cbdma enable
"""
self.get_cbdma_ports_info_and_bind_to_dpdk(16, allow_diff_socket=True)
- lcore_dma = (
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s,"
- "lcore%s@%s"
+ dmas = (
+ "txq0@%s;"
+ "txq1@%s;"
+ "txq2@%s;"
+ "txq3@%s;"
+ "txq4@%s;"
+ "txq5@%s;"
+ "txq6@%s;"
+ "txq7@%s;"
+ "txq8@%s;"
+ "txq9@%s;"
+ "txq10@%s;"
+ "txq11@%s;"
+ "txq12@%s;"
+ "txq13@%s;"
+ "txq14@%s;"
+ "txq15@%s;"
+ "rxq0@%s;"
+ "rxq1@%s;"
+ "rxq2@%s;"
+ "rxq3@%s;"
+ "rxq4@%s;"
+ "rxq5@%s;"
+ "rxq6@%s;"
+ "rxq7@%s;"
+ "rxq8@%s;"
+ "rxq9@%s;"
+ "rxq10@%s;"
+ "rxq11@%s;"
+ "rxq12@%s;"
+ "rxq13@%s;"
+ "rxq14@%s;"
+ "rxq15@%s"
% (
- self.vhost_core_list[1],
self.cbdma_list[0],
- self.vhost_core_list[2],
+ self.cbdma_list[0],
+ self.cbdma_list[0],
+ self.cbdma_list[0],
+ self.cbdma_list[0],
+ self.cbdma_list[0],
+ self.cbdma_list[0],
+ self.cbdma_list[0],
+ self.cbdma_list[1],
+ self.cbdma_list[1],
+ self.cbdma_list[1],
+ self.cbdma_list[1],
+ self.cbdma_list[1],
+ self.cbdma_list[1],
+ self.cbdma_list[1],
self.cbdma_list[1],
- self.vhost_core_list[3],
self.cbdma_list[2],
- self.vhost_core_list[4],
+ self.cbdma_list[2],
+ self.cbdma_list[2],
+ self.cbdma_list[2],
+ self.cbdma_list[2],
+ self.cbdma_list[2],
+ self.cbdma_list[2],
+ self.cbdma_list[2],
+ self.cbdma_list[3],
+ self.cbdma_list[3],
+ self.cbdma_list[3],
+ self.cbdma_list[3],
+ self.cbdma_list[3],
+ self.cbdma_list[3],
+ self.cbdma_list[3],
self.cbdma_list[3],
- self.vhost_core_list[5],
- self.cbdma_list[4],
- self.vhost_core_list[6],
- self.cbdma_list[5],
- self.vhost_core_list[7],
- self.cbdma_list[6],
- self.vhost_core_list[8],
- self.cbdma_list[7],
- self.vhost_core_list[9],
- self.cbdma_list[8],
- self.vhost_core_list[10],
- self.cbdma_list[9],
- self.vhost_core_list[11],
- self.cbdma_list[10],
- self.vhost_core_list[12],
- self.cbdma_list[11],
- self.vhost_core_list[13],
- self.cbdma_list[12],
- self.vhost_core_list[14],
- self.cbdma_list[13],
- self.vhost_core_list[15],
- self.cbdma_list[14],
- self.vhost_core_list[16],
- self.cbdma_list[15],
)
)
- vhost_param = (
- "--nb-cores=16 --txd=1024 --rxd=1024 --rxq=16 --txq=16 --lcore-dma=[%s]"
- % lcore_dma
+ vhost_param = "--nb-cores=16 --txd=1024 --rxd=1024 --rxq=16 --txq=16"
+ vhost_eal_param = (
+ "--vdev 'net_vhost,iface=vhost-net,queues=16,client=1,dmas=[%s]'" % dmas
)
- vhost_eal_param = "--vdev 'net_vhost,iface=vhost-net,queues=16,client=1,dmas=[txq0;txq1;txq2;txq3;txq4;txq5;txq6;txq7;txq8;txq9;txq10;txq11;txq12;txq13;txq14;txq15;rxq0;rxq1;rxq2;rxq3;rxq4;rxq5;rxq6;rxq7;rxq8;rxq9;rxq10;rxq11;rxq12;rxq13;rxq14;rxq15]'"
ports = self.cbdma_list
ports.append(self.dut.ports_info[0]["pci"])
self.vhost_pmd.start_testpmd(
--
2.25.1
next reply other threads:[~2022-11-22 7:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-22 7:13 Wei Ling [this message]
2022-11-30 7:29 ` lijuan.tu
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=20221122071331.2895321-1-weix.ling@intel.com \
--to=weix.ling@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).