* [dts] [PATCH V3] DTS adapts to foxville network card
@ 2020-04-22 8:41 Zhou Jun
2020-04-22 8:51 ` Han, YingyaX
0 siblings, 1 reply; 2+ messages in thread
From: Zhou Jun @ 2020-04-22 8:41 UTC (permalink / raw)
To: dts; +Cc: Zhou jun
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(-)
--git a/tests/TestSuite_pmdrssreta.py b/tests/TestSuite_pmdrssreta.py
index 8227961..ec4eb03 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
--git a/tests/TestSuite_rss_to_rte_flow.py b/tests/TestSuite_rss_to_rte_flow.py
index be2c72e..a468587 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",
"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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH V3] DTS adapts to foxville network card
2020-04-22 8:41 [dts] [PATCH V3] DTS adapts to foxville network card Zhou Jun
@ 2020-04-22 8:51 ` Han, YingyaX
0 siblings, 0 replies; 2+ messages in thread
From: Han, YingyaX @ 2020-04-22 8:51 UTC (permalink / raw)
To: Zhou, JunX W, dts; +Cc: Zhou, JunX W
[-- Attachment #1: Type: text/plain, Size: 5263 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: Wednesday, April 22, 2020 4:42 PM
To: dts@dpdk.org
Cc: Zhou, JunX W <junx.w.zhou@intel.com>
Subject: [dts] [PATCH V3] 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 8227961..ec4eb03 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 be2c72e..a468587 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",
"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: TestRSS_to_Rteflow.log --]
[-- Type: application/octet-stream, Size: 568320 bytes --]
[-- Attachment #3: TestPmdrssreta.log --]
[-- Type: application/octet-stream, Size: 857671 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-22 8:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-22 8:41 [dts] [PATCH V3] DTS adapts to foxville network card Zhou Jun
2020-04-22 8:51 ` Han, YingyaX
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).