[dts] [PATCH V4] DTS adapts to foxville network card
Han, YingyaX
yingyax.han at intel.com
Thu Apr 23 09:34:41 CEST 2020
Tested-by: Han,YingyaX <yingyax.han at intel.com>
BRs,
Yingya
-----Original Message-----
From: dts <dts-bounces at dpdk.org> On Behalf Of Zhou Jun
Sent: Thursday, April 23, 2020 3:18 PM
To: dts at dpdk.org
Cc: Zhou, JunX W <junx.w.zhou at intel.com>
Subject: [dts] [PATCH V4] DTS adapts to foxville network card
From: Zhou jun <junx.w.zhou at 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 at intel.com>
---
tests/TestSuite_pmdrssreta.py | 1 +
tests/TestSuite_rss_to_rte_flow.py | 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestPmdrssreta.log
Type: application/octet-stream
Size: 2312067 bytes
Desc: TestPmdrssreta.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20200423/cf52f23d/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestRSS_to_Rteflow.log
Type: application/octet-stream
Size: 1076889 bytes
Desc: TestRSS_to_Rteflow.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20200423/cf52f23d/attachment-0003.obj>
More information about the dts
mailing list