test suite reviews and discussions
 help / color / mirror / Atom feed
From: Jiale Song <songx.jiale@intel.com>
To: dts@dpdk.org
Cc: Jiale Song <songx.jiale@intel.com>
Subject: [dts] [PATCH V1] tests/ice_limit_value_test: add mark for fdir rule
Date: Wed, 22 Jun 2022 17:11:14 +0000	[thread overview]
Message-ID: <20220622171114.25002-1-songx.jiale@intel.com> (raw)

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

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):
-- 
2.17.1


             reply	other threads:[~2022-06-22  8:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-22 17:11 Jiale Song [this message]
2022-06-29  1:38 ` lijuan.tu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220622171114.25002-1-songx.jiale@intel.com \
    --to=songx.jiale@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).