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

Message ID 20230330074725.783889-1-weix.ling@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/vhost_virtio_user_interrupt_with_power_monitor: modify the packet to make every queue can receive packets |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-suite-test warning SKIPPED

Commit Message

Ling, WeiX March 30, 2023, 7:47 a.m. UTC
  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@intel.com>
---
 ...Suite_vhost_virtio_user_interrupt_with_power_monitor.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
  

Comments

Tu, Lijuan April 11, 2023, 8:57 a.m. UTC | #1
On Thu, 30 Mar 2023 15:47:25 +0800, Wei Ling <weix.ling@intel.com> wrote:
> 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@intel.com>


Applied, thanks
  

Patch

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)}),
                 ]
             )