[V1] tests/ice_limit_value_test: add mark for fdir rule

Message ID 20220622171114.25002-1-songx.jiale@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/ice_limit_value_test: add mark for fdir rule |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-doc-test success Testing OK
ci/Intel-dts-suite-test success Testing OK

Commit Message

Jiale, SongX June 22, 2022, 5:11 p.m. UTC
  1.fdir rule need add mark id
2.synchronize packages in testplan and case

Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
 test_plans/ice_limit_value_test_test_plan.rst |  8 ++++----
 tests/TestSuite_ice_limit_value_test.py       | 14 ++++++++++----
 2 files changed, 14 insertions(+), 8 deletions(-)
  

Comments

Tu, Lijuan June 29, 2022, 1:38 a.m. UTC | #1
On Wed, 22 Jun 2022 17:11:14 +0000, Jiale Song <songx.jiale@intel.com> wrote:
> 1.fdir rule need add mark id
> 2.synchronize packages in testplan and case
> 
> Signed-off-by: Jiale Song <songx.jiale@intel.com>


Applied, thanks
  

Patch

diff --git a/test_plans/ice_limit_value_test_test_plan.rst b/test_plans/ice_limit_value_test_test_plan.rst
index ff859038..70311efd 100644
--- a/test_plans/ice_limit_value_test_test_plan.rst
+++ b/test_plans/ice_limit_value_test_test_plan.rst
@@ -350,8 +350,8 @@  Subcase 2: add/delete rules on two VFs
 
 1. create a rule on each vf::
 
-    flow create 0 ingress pattern eth / ipv4 src is 192.168.0.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / end
-    flow create 1 ingress pattern eth / ipv4 src is 192.168.0.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / end
+    flow create 0 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / mark id 1 / end
+    flow create 1 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / mark id 2 / end
 
    return the message::
 
@@ -376,8 +376,8 @@  Subcase 2: add/delete rules on two VFs
 
 4. create the rule on each vf one more time, check the rules listed::
 
-    flow create 0 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / end
-    flow create 1 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / end
+    flow create 0 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / mark id 1 / end
+    flow create 1 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / mark id 2 / end
 
 5. send matched packet::
 
diff --git a/tests/TestSuite_ice_limit_value_test.py b/tests/TestSuite_ice_limit_value_test.py
index 180c8c6d..b75cea84 100644
--- a/tests/TestSuite_ice_limit_value_test.py
+++ b/tests/TestSuite_ice_limit_value_test.py
@@ -1015,8 +1015,8 @@  class TestICELimitValue(TestCase):
         """
         dut_file_dir = "/tmp/"
         rules = [
-            "flow create 0 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / end",
-            "flow create 1 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / end",
+            "flow create 0 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / mark id 1 / end",
+            "flow create 1 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / mark id 2 / end",
         ]
         pkts = [
             'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.56.0",dst="192.1.0.0", tos=4)/TCP(sport=22,dport=23)/Raw("x" * 80)',
@@ -1057,11 +1057,17 @@  class TestICELimitValue(TestCase):
         self.create_fdir_rule(rules, check_stats=True)
         out_0 = self.send_pkts_getouput(pkts=pkts[0], pf_id=0)
         rfc.check_iavf_fdir_mark(
-            out_0, pkt_num=1, check_param={"port_id": 0, "queue": 5}, stats=True
+            out_0,
+            pkt_num=1,
+            check_param={"port_id": 0, "mark_id": 1, "queue": 5},
+            stats=True,
         )
         out_1 = self.send_pkts_getouput(pkts=pkts[1], pf_id=0)
         rfc.check_iavf_fdir_mark(
-            out_1, pkt_num=1, check_param={"port_id": 1, "queue": 5}, stats=True
+            out_1,
+            pkt_num=1,
+            check_param={"port_id": 1, "mark_id": 2, "queue": 5},
+            stats=True,
         )
 
     def launch_testpmd_with_mark(self, rxq=64, txq=64):