[V1] tests/iavf_fdir:modify mpls packet format

Message ID 20200813061502.12248-1-weix.xie@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/iavf_fdir:modify mpls packet format |

Commit Message

Xie, WeiX Aug. 13, 2020, 6:15 a.m. UTC
  According to test plan, modify MPLS packet format.

Signed-off-by: Xie wei <weix.xie@intel.com>
---
 tests/TestSuite_iavf_fdir.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
  

Comments

Xie, WeiX Aug. 13, 2020, 6:21 a.m. UTC | #1
Tested-by:  Xie,WeiX < weix.xie@intel.com>

Regards,
Xie Wei


-----Original Message-----
From: Xie, WeiX 
Sent: Thursday, August 13, 2020 2:15 PM
To: dts@dpdk.org
Cc: Xie, WeiX <weix.xie@intel.com>
Subject: [dts][PATCH V1] tests/iavf_fdir:modify mpls packet format

According to test plan, modify MPLS packet format.

Signed-off-by: Xie wei <weix.xie@intel.com>
---
 tests/TestSuite_iavf_fdir.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/tests/TestSuite_iavf_fdir.py b/tests/TestSuite_iavf_fdir.py index 2e02006..c8a93d2 100644
--- a/tests/TestSuite_iavf_fdir.py
+++ b/tests/TestSuite_iavf_fdir.py
@@ -295,7 +295,7 @@ L2_Ethertype = [
     'Ether(dst="00:11:22:33:44:55",type=0x8100)',
     'Ether(dst="00:11:22:33:44:55")/Dot1Q(vlan=1)',
     'Ether(dst="00:11:22:33:44:55",type=0x88f7)/"\\x00\\x02"',
-    'Ether(dst="00:11:22:33:44:55",type=0x8847)']
+    
+ 'Ether(dst="00:11:22:33:44:55",type=0x8847)/MPLS(label=0xee456)/IP()']
 
 PFCP = [
     'Ether(dst="00:11:22:33:44:55")/IP()/UDP(sport=22, dport=8805)/PFCP(Sfield=0)', @@ -329,7 +329,7 @@ tv_l2_ethertype_queue_index = {
         {"port_id": 0, "queue": 4, "mark_id": 4},
         {"port_id": 0, "queue": 4, "mark_id": 4},
         {"port_id": 0, "queue": 5, "mark_id": 5},
-        {"port_id": 0, "queue": 0}]
+        {"port_id": 0, "passthru": 1}]
 }
 
 tv_l2_ethertype_queue_group = {
@@ -351,7 +351,7 @@ tv_l2_ethertype_queue_group = {
         {"port_id": 0, "queue": 0, "mark_id": 2},
         {"port_id": 0, "queue": 0, "mark_id": 2},
         {"port_id": 0, "queue": 0, "mark_id": 3},
-        {"port_id": 0, "queue": 0}]
+        {"port_id": 0, "passthru": 1}]
 }
 
 tv_l2_ethertype_passthru = {
@@ -373,7 +373,7 @@ tv_l2_ethertype_passthru = {
         {"port_id": 0, "queue": 0, "mark_id": 3},
         {"port_id": 0, "queue": 0, "mark_id": 3},
         {"port_id": 0, "queue": 0, "mark_id": 4},
-        {"port_id": 0, "queue": 0}]
+        {"port_id": 0, "passthru": 1}]
 }
 
 tv_l2_ethertype_mark_rss = {
@@ -395,7 +395,7 @@ tv_l2_ethertype_mark_rss = {
         {"port_id": 0, "queue": 0, "mark_id": 0},
         {"port_id": 0, "queue": 0, "mark_id": 0},
         {"port_id": 0, "queue": 0, "mark_id": 3},
-        {"port_id": 0, "queue": 0}]
+        {"port_id": 0, "passthru": 1}]
 }
 
 tv_l2_ethertype_mark = {
@@ -417,7 +417,7 @@ tv_l2_ethertype_mark = {
         {"port_id": 0, "queue": 0, "mark_id": 2},
         {"port_id": 0, "queue": 0, "mark_id": 2},
         {"port_id": 0, "queue": 0, "mark_id": 0},
-        {"port_id": 0, "queue": 0}]
+        {"port_id": 0, "passthru": 1}]
 }
 
 tv_l2_ethertype_drop = {
@@ -439,7 +439,7 @@ tv_l2_ethertype_drop = {
         {"port_id": 0, "drop": 1},
         {"port_id": 0, "drop": 1},
         {"port_id": 0, "drop": 1},
-        {"port_id": 0, "queue": 0}]
+        {"port_id": 0, "passthru": 1}]
 }
 
 tv_pfcp_queue_index = {
--
2.17.1
  
Tu, Lijuan Aug. 21, 2020, 2:40 a.m. UTC | #2
> According to test plan, modify MPLS packet format.
> 
> Signed-off-by: Xie wei <weix.xie@intel.com>

Applied
  

Patch

diff --git a/tests/TestSuite_iavf_fdir.py b/tests/TestSuite_iavf_fdir.py
index 2e02006..c8a93d2 100644
--- a/tests/TestSuite_iavf_fdir.py
+++ b/tests/TestSuite_iavf_fdir.py
@@ -295,7 +295,7 @@  L2_Ethertype = [
     'Ether(dst="00:11:22:33:44:55",type=0x8100)',
     'Ether(dst="00:11:22:33:44:55")/Dot1Q(vlan=1)',
     'Ether(dst="00:11:22:33:44:55",type=0x88f7)/"\\x00\\x02"',
-    'Ether(dst="00:11:22:33:44:55",type=0x8847)']
+    'Ether(dst="00:11:22:33:44:55",type=0x8847)/MPLS(label=0xee456)/IP()']
 
 PFCP = [
     'Ether(dst="00:11:22:33:44:55")/IP()/UDP(sport=22, dport=8805)/PFCP(Sfield=0)',
@@ -329,7 +329,7 @@  tv_l2_ethertype_queue_index = {
         {"port_id": 0, "queue": 4, "mark_id": 4},
         {"port_id": 0, "queue": 4, "mark_id": 4},
         {"port_id": 0, "queue": 5, "mark_id": 5},
-        {"port_id": 0, "queue": 0}]
+        {"port_id": 0, "passthru": 1}]
 }
 
 tv_l2_ethertype_queue_group = {
@@ -351,7 +351,7 @@  tv_l2_ethertype_queue_group = {
         {"port_id": 0, "queue": 0, "mark_id": 2},
         {"port_id": 0, "queue": 0, "mark_id": 2},
         {"port_id": 0, "queue": 0, "mark_id": 3},
-        {"port_id": 0, "queue": 0}]
+        {"port_id": 0, "passthru": 1}]
 }
 
 tv_l2_ethertype_passthru = {
@@ -373,7 +373,7 @@  tv_l2_ethertype_passthru = {
         {"port_id": 0, "queue": 0, "mark_id": 3},
         {"port_id": 0, "queue": 0, "mark_id": 3},
         {"port_id": 0, "queue": 0, "mark_id": 4},
-        {"port_id": 0, "queue": 0}]
+        {"port_id": 0, "passthru": 1}]
 }
 
 tv_l2_ethertype_mark_rss = {
@@ -395,7 +395,7 @@  tv_l2_ethertype_mark_rss = {
         {"port_id": 0, "queue": 0, "mark_id": 0},
         {"port_id": 0, "queue": 0, "mark_id": 0},
         {"port_id": 0, "queue": 0, "mark_id": 3},
-        {"port_id": 0, "queue": 0}]
+        {"port_id": 0, "passthru": 1}]
 }
 
 tv_l2_ethertype_mark = {
@@ -417,7 +417,7 @@  tv_l2_ethertype_mark = {
         {"port_id": 0, "queue": 0, "mark_id": 2},
         {"port_id": 0, "queue": 0, "mark_id": 2},
         {"port_id": 0, "queue": 0, "mark_id": 0},
-        {"port_id": 0, "queue": 0}]
+        {"port_id": 0, "passthru": 1}]
 }
 
 tv_l2_ethertype_drop = {
@@ -439,7 +439,7 @@  tv_l2_ethertype_drop = {
         {"port_id": 0, "drop": 1},
         {"port_id": 0, "drop": 1},
         {"port_id": 0, "drop": 1},
-        {"port_id": 0, "queue": 0}]
+        {"port_id": 0, "passthru": 1}]
 }
 
 tv_pfcp_queue_index = {