test suite reviews and discussions
 help / color / mirror / Atom feed
From: Wei Ling <weix.ling@intel.com>
To: dts@dpdk.org
Cc: Wei Ling <weix.ling@intel.com>
Subject: [dts][PATCH V1] tests/vhost_virtio_user_interrupt_with_power_monitor: modify the packet to make every queue can receive packets
Date: Thu, 30 Mar 2023 15:47:25 +0800	[thread overview]
Message-ID: <20230330074725.783889-1-weix.ling@intel.com> (raw)

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(-)

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


             reply	other threads:[~2023-03-30  7:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-30  7:47 Wei Ling [this message]
2023-04-11  8:57 ` 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=20230330074725.783889-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).