From: "Han, YingyaX" <yingyax.han@intel.com>
To: "Zhou, JunX W" <junx.w.zhou@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Zhou, JunX W" <junx.w.zhou@intel.com>
Subject: Re: [dts] [PATCH V4] DTS adapts to foxville network card
Date: Thu, 23 Apr 2020 07:34:41 +0000 [thread overview]
Message-ID: <BN7PR11MB2818D58E6B06068A0C41709BFFD30@BN7PR11MB2818.namprd11.prod.outlook.com> (raw)
In-Reply-To: <1587626291-56898-1-git-send-email-junx.w.zhou@intel.com>
[-- Attachment #1: Type: text/plain, Size: 5276 bytes --]
Tested-by: Han,YingyaX <yingyax.han@intel.com>
BRs,
Yingya
-----Original Message-----
From: dts <dts-bounces@dpdk.org> On Behalf Of Zhou Jun
Sent: Thursday, April 23, 2020 3:18 PM
To: dts@dpdk.org
Cc: Zhou, JunX W <junx.w.zhou@intel.com>
Subject: [dts] [PATCH V4] DTS adapts to foxville network card
From: Zhou jun <junx.w.zhou@intel.com>
Fixed errors caused by patch V2
1.pmdrssreta/test_pmdrss_reta testQueues not define 2.tests/TestSuite_rss_to_rte_flow.py Code format error
Signed-off-by: Zhou jun <junx.w.zhou@intel.com>
---
| 1 +
| 32 ++++++++++++++++----------------
2 files changed, 17 insertions(+), 16 deletions(-)
diff --git a/tests/TestSuite_pmdrssreta.py b/tests/TestSuite_pmdrssreta.py index 7f77ca9..3595ac5 100644
--- a/tests/TestSuite_pmdrssreta.py
+++ b/tests/TestSuite_pmdrssreta.py
@@ -212,6 +212,7 @@ class TestPmdrssreta(TestCase):
}
self.dut.kill_all()
+ global testQueues
if self.nic == 'foxville':
testQueues = [2]
# test with different rss queues diff --git a/tests/TestSuite_rss_to_rte_flow.py b/tests/TestSuite_rss_to_rte_flow.py
index a6375d0..b345a84 100644
--- a/tests/TestSuite_rss_to_rte_flow.py
+++ b/tests/TestSuite_rss_to_rte_flow.py
@@ -190,7 +190,7 @@ class TestRSS_to_Rteflow(TestCase):
# Disable RSS hash function
self.dut.send_expect(
"flow create 0 ingress pattern end actions rss types none end / end", "created")
- if self.nic == 'foxville':
+ if self.nic == 'foxville':
self.dut.send_expect("flow flush 0", "testpmd> ")
self.dut.send_expect(
"show port 0 rss-hash", "RSS disabled") @@ -299,7 +299,7 @@ class TestRSS_to_Rteflow(TestCase):
self.send_and_check(self.pkt7, rss_queue)
else:
if self.nic == 'foxville':
- rss_queue = ["1", "2", "3"]
+ rss_queue = ["1", "2", "3"]
self.send_and_check(self.pkt1, rss_queue)
self.send_and_check(self.pkt2, rss_queue)
self.send_and_check(self.pkt3, rss_queue) @@ -391,7 +391,7 @@ class TestRSS_to_Rteflow(TestCase):
self.send_and_check(self.pkt2, rss_queue)
self.send_and_check(self.pkt3, rss_queue)
self.send_and_check(self.pkt6, rss_queue)
- elif(self.nic in ["foxville"]):
+ elif(self.nic in ["foxville"]):
rss_queue = ["1", "2", "3"]
self.send_and_check(self.pkt2, rss_queue)
self.send_and_check(self.pkt3, rss_queue) @@ -514,14 +514,14 @@ class TestRSS_to_Rteflow(TestCase):
self.dut.send_expect("start", "testpmd> ", 120)
time.sleep(2)
# Create a rss queue rule
- if self.nic == 'foxville':
- self.dut.send_expect(
+ if self.nic == 'foxville':
+ self.dut.send_expect(
"flow create 0 ingress pattern end actions rss types ipv6-tcp ipv4-udp sctp ipv6-other end queues 1 2 3 end / end", "created")
- else:
- self.dut.send_expect(
- "flow create 0 ingress pattern end actions rss types ipv6-tcp ipv4-udp sctp ipv6-other end queues 5 6 7 end / end", "created")
+ else:
+ self.dut.send_expect(
+ "flow create 0 ingress pattern end actions rss types
+ ipv6-tcp ipv4-udp sctp ipv6-other end queues 5 6 7 end / end",
+ "created")
# send the packets and verify the results
- rss_queue = ["5", "6", "7"]
+ rss_queue = ["5", "6", "7"]
if (self.nic in ["fortville_eagle", "fortville_spirit", "carlsville",
"fortville_spirit_single", "fortpark_TLV","fortpark_BASE-T", "fortville_25g"]):
self.send_and_check(self.pkt1, rss_queue) @@ -534,8 +534,8 @@ class TestRSS_to_Rteflow(TestCase):
self.send_and_check(self.pkt4, rss_queue)
self.send_and_check(self.pkt6, rss_queue)
else:
- if self.nic == 'foxville':
- rss_queue = ["1", "2", "3"]
+ if self.nic == 'foxville':
+ rss_queue = ["1", "2", "3"]
self.send_and_check(self.pkt2, rss_queue)
self.send_and_check(self.pkt7, rss_queue)
rss_queue = ["0"]
@@ -570,12 +570,12 @@ class TestRSS_to_Rteflow(TestCase):
time.sleep(2)
# Create a rss queue rule
- if self.nic == 'foxville':
- self.dut.send_expect(
+ if self.nic == 'foxville':
+ self.dut.send_expect(
"flow create 0 ingress pattern end actions rss types udp end queues 1 2 3 end / end", "created")
- else:
- self.dut.send_expect(
- "flow create 0 ingress pattern end actions rss types udp end queues 3 4 5 end / end", "created")
+ else:
+ self.dut.send_expect(
+ "flow create 0 ingress pattern end actions rss types
+ udp end queues 3 4 5 end / end", "created")
# send the packets and verify the results
rss_queue = ["1", "2", "3"] if self.nic == 'foxville' else ["3", "4", "5"]
self.send_and_check(self.pkt2, rss_queue)
--
1.8.3.1
[-- Attachment #2: TestPmdrssreta.log --]
[-- Type: application/octet-stream, Size: 2312067 bytes --]
[-- Attachment #3: TestRSS_to_Rteflow.log --]
[-- Type: application/octet-stream, Size: 1076889 bytes --]
next prev parent reply other threads:[~2020-04-23 7:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-23 7:18 Zhou Jun
2020-04-23 7:34 ` Han, YingyaX [this message]
2020-04-23 8:11 ` Tu, Lijuan
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=BN7PR11MB2818D58E6B06068A0C41709BFFD30@BN7PR11MB2818.namprd11.prod.outlook.com \
--to=yingyax.han@intel.com \
--cc=dts@dpdk.org \
--cc=junx.w.zhou@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).