[dts][PATCH V1] tests/vhost_virtio_user_interrupt_with_power_monitor: modify the packet to make every queue can receive packets

Wei Ling weix.ling at intel.com
Thu Mar 30 09:47:25 CEST 2023


1.Modify the packet to make every queue can receive packets when start
testpmd with multi-queues.
2.Because the default parameter is `--rss-ip`, so delete it.

Signed-off-by: Wei Ling <weix.ling at intel.com>
---
 ...Suite_vhost_virtio_user_interrupt_with_power_monitor.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/tests/TestSuite_vhost_virtio_user_interrupt_with_power_monitor.py b/tests/TestSuite_vhost_virtio_user_interrupt_with_power_monitor.py
index e56d8b61..549b6a7b 100644
--- a/tests/TestSuite_vhost_virtio_user_interrupt_with_power_monitor.py
+++ b/tests/TestSuite_vhost_virtio_user_interrupt_with_power_monitor.py
@@ -139,7 +139,7 @@ class TestVirtioUserInterruptDsa(TestCase):
         )
         if self.check_2M_env:
             eal_params += " --single-file-segments"
-        para = " -- -i --rxq=%d --txq=%d --rss-ip" % (queues, queues)
+        para = " -- -i --rxq=%d --txq=%d" % (queues, queues)
         command_line_client = self.app_testpmd_path + " " + eal_params + para
         self.virtio_user.send_expect(
             command_line_client, "waiting for client connection...", 120
@@ -197,14 +197,13 @@ class TestVirtioUserInterruptDsa(TestCase):
             fields_config = {
                 "ip": {
                     "src": {"action": "random"},
+                    "dst": {"action": "random"},
                 },
             }
             pkt = Packet()
-            pkt.assign_layers(["ether", "ipv4", "raw"])
+            pkt.assign_layers(["ether", "ipv4", "tcp", "raw"])
             pkt.config_layers(
                 [
-                    ("ether", {"dst": "52:54:00:00:00:01"}),
-                    ("ipv4", {"src": "1.1.1.1"}),
                     ("raw", {"payload": ["01"] * int("%d" % payload_size)}),
                 ]
             )
-- 
2.25.1



More information about the dts mailing list