test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V4] DTS adapts to foxville network card
@ 2020-04-23  7:18 Zhou Jun
  2020-04-23  7:34 ` Han, YingyaX
  2020-04-23  8:11 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Zhou Jun @ 2020-04-23  7:18 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>
---
 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V4] DTS adapts to foxville network card
  2020-04-23  7:18 [dts] [PATCH V4] DTS adapts to foxville network card Zhou Jun
@ 2020-04-23  7:34 ` Han, YingyaX
  2020-04-23  8:11 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Han, YingyaX @ 2020-04-23  7:34 UTC (permalink / raw)
  To: Zhou, JunX W, dts; +Cc: Zhou, JunX W

[-- 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>
---
 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


[-- Attachment #2: TestPmdrssreta.log --]
[-- Type: application/octet-stream, Size: 2312067 bytes --]

[-- Attachment #3: TestRSS_to_Rteflow.log --]
[-- Type: application/octet-stream, Size: 1076889 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V4] DTS adapts to foxville network card
  2020-04-23  7:18 [dts] [PATCH V4] DTS adapts to foxville network card Zhou Jun
  2020-04-23  7:34 ` Han, YingyaX
@ 2020-04-23  8:11 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-04-23  8:11 UTC (permalink / raw)
  To: Zhou, JunX W, dts; +Cc: Zhou, JunX W

Applied thanks

> -----Original Message-----
> From: dts [mailto: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>
> ---
>  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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-23  8:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-23  7:18 [dts] [PATCH V4] DTS adapts to foxville network card Zhou Jun
2020-04-23  7:34 ` Han, YingyaX
2020-04-23  8:11 ` Tu, Lijuan

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