From: Weiyuan Li <weiyuanx.li@intel.com>
To: dts@dpdk.org, yuan.peng@intel.com
Cc: Weiyuan Li <weiyuanx.li@intel.com>
Subject: [dts][PATCH V1] tests/rss_to_rte_flow: update dts code for dpdk change
Date: Thu, 14 Jul 2022 16:34:33 +0800 [thread overview]
Message-ID: <20220714083433.13499-1-weiyuanx.li@intel.com> (raw)
According to dpdk commit 44a37f3cffe0(app/testpmd: compact RSS types output) modify the script to adapt to this change.
Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
| 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
--git a/tests/TestSuite_rss_to_rte_flow.py b/tests/TestSuite_rss_to_rte_flow.py
index 044f3755..29faa5c4 100644
--- a/tests/TestSuite_rss_to_rte_flow.py
+++ b/tests/TestSuite_rss_to_rte_flow.py
@@ -395,10 +395,10 @@ class TestRSS_to_Rteflow(TestCase):
# Show port default RSS functions
self.dut.send_expect(
- "show port 0 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other"
+ "show port 0 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other"
)
self.dut.send_expect(
- "show port 1 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other"
+ "show port 1 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other"
)
self.send_check_100_packet_queue("ipv4-other", "all", port_id=0)
@@ -465,7 +465,7 @@ class TestRSS_to_Rteflow(TestCase):
self.dut.send_expect(
"show port 1 rss-hash",
- "ipv4-frag ipv4-tcp ipv4-udp ipv4-sctp ipv4-other ipv6-frag ipv6-tcp ipv6-udp ipv6-sctp ipv6-other l2-payload sctp",
+ "sctp ipv4-frag ipv4-tcp ipv4-udp ipv4-sctp ipv4-other\r\n ipv6-frag ipv6-tcp ipv6-udp ipv6-sctp ipv6-other\r\n l2-payload",
)
# send the packets and verify the results
ptype_list1 = [
@@ -615,7 +615,7 @@ class TestRSS_to_Rteflow(TestCase):
"created",
)
self.dut.send_expect(
- "show port 0 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other"
+ "show port 0 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other"
)
# send the packets and verify the results
@@ -646,7 +646,7 @@ class TestRSS_to_Rteflow(TestCase):
# flush rule on port 0
self.dut.send_expect("flow flush 0", "testpmd> ")
self.dut.send_expect(
- "show port 0 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other"
+ "show port 0 rss-hash", "ipv4-frag ipv4-other ipv6-frag ipv6-other"
)
# send the packets and verify the results
self.send_check_100_packet_queue("ipv4-other", "all", port_id=0)
@@ -1427,7 +1427,7 @@ class TestRSS_to_Rteflow(TestCase):
time.sleep(2)
# Show port default RSS functions
- self.dut.send_expect("show port 0 rss-hash", "ipv4 ipv6 ipv6-ex")
+ self.dut.send_expect("show port 0 rss-hash", "ipv4 ipv6 ipv6-ex")
ptype_list1 = [
"ipv4-other",
"ipv4-frag",
@@ -1457,7 +1457,7 @@ class TestRSS_to_Rteflow(TestCase):
)
self.dut.send_expect(
"show port 0 rss-hash",
- "ipv4 ipv4-tcp ipv4-udp ipv6 ipv6-tcp ipv6-udp ipv6-ex ipv6-tcp-ex ipv6-udp-ex",
+ "udp tcp ipv4 ipv4-tcp ipv4-udp ipv6 ipv6-tcp ipv6-udp\r\n ipv6-ex ipv6-tcp-ex ipv6-udp-ex",
)
self.send_check_100_packet_queue(ptype_list1, "all", port_id=0)
@@ -1489,7 +1489,7 @@ class TestRSS_to_Rteflow(TestCase):
time.sleep(2)
# Show port default RSS fucntions
- self.dut.send_expect("show port 0 rss-hash", "ipv4 ipv6 ipv6-ex")
+ self.dut.send_expect("show port 0 rss-hash", "ipv4 ipv6 ipv6-ex")
# enable ipv4-udp rss function
self.dut.send_expect(
"flow create 0 ingress pattern end actions rss types ipv4-udp end / end",
@@ -1664,7 +1664,7 @@ class TestRSS_to_Rteflow(TestCase):
"created",
)
self.dut.send_expect(
- "show port 0 rss-hash", "ipv4-tcp ipv4-udp ipv6-udp ipv6-udp-ex"
+ "show port 0 rss-hash", "ipv4-tcp ipv4-udp ipv6-udp ipv6-udp-ex"
)
ptype_list1 = ["ipv4-udp", "ipv4-tcp", "ipv6-udp"]
ptype_list2 = [
@@ -1700,7 +1700,7 @@ class TestRSS_to_Rteflow(TestCase):
"flow create 0 ingress pattern end actions rss types ipv4 ipv6 end queues 3 7 end / end",
"created",
)
- self.dut.send_expect("show port 0 rss-hash", "ipv4 ipv6")
+ self.dut.send_expect("show port 0 rss-hash", "ipv4 ipv6")
ptype_list3 = [
"ipv4-other",
"ipv4-frag",
@@ -1788,7 +1788,7 @@ class TestRSS_to_Rteflow(TestCase):
"flow create 0 ingress pattern end actions rss types ipv6-tcp ipv4-udp end queues 5 6 7 end / end",
"created",
)
- self.dut.send_expect("show port 0 rss-hash", "ipv4-udp ipv6-tcp")
+ self.dut.send_expect("show port 0 rss-hash", "ipv4-udp ipv6-tcp")
# send the packets and verify the results
ptype_list2 = ["ipv4-udp", "ipv6-tcp"]
--
2.27.0
next reply other threads:[~2022-07-14 8:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-14 8:34 Weiyuan Li [this message]
2022-07-18 9:39 ` Chen, LingliX
2022-09-07 4:48 ` Peng, Yuan
2022-09-15 6:18 ` 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=20220714083433.13499-1-weiyuanx.li@intel.com \
--to=weiyuanx.li@intel.com \
--cc=dts@dpdk.org \
--cc=yuan.peng@intel.com \
/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).