test suite reviews and discussions
 help / color / mirror / Atom feed
From: Hongbo Li <hongbox.li@intel.com>
To: dts@dpdk.org
Cc: Hongbo Li <hongbox.li@intel.com>, Peng Yuan <yuan.peng@intel.com>
Subject: [dts][PATCH V1 1/2] test_plans/ice_iavf_fdir: add new cases according to testplan
Date: Sat, 31 Dec 2022 01:42:26 +0800	[thread overview]
Message-ID: <20221230174227.10809-1-hongbox.li@intel.com> (raw)

add subcase 8 to test Kill VF process and create a new rule

Signed-off-by: Peng Yuan <yuan.peng@intel.com>
Signed-off-by: Hongbo Li <hongbox.li@intel.com>
---
 test_plans/ice_iavf_fdir_test_plan.rst | 33 ++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/test_plans/ice_iavf_fdir_test_plan.rst b/test_plans/ice_iavf_fdir_test_plan.rst
index 5f22d48e..81fc2f60 100644
--- a/test_plans/ice_iavf_fdir_test_plan.rst
+++ b/test_plans/ice_iavf_fdir_test_plan.rst
@@ -5078,6 +5078,39 @@ Subcase 7: check profile delete
 6. send the two packets again,
    check the two packets are distributed by RSS without FDIR matched ID.
 
+Subcase 8: Kill VF process and create a new rule
+------------------------------------------------
+
+1. create a rule on vf00 and vf01::
+
+    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 / mark / 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 / mark / end
+
+2. send matched packet::
+
+    sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.0",dst="192.1.0.0", tos=4)/TCP(sport=22,dport=23)/Raw('x' * 80)],iface="enp134s0f1")
+    sendp([Ether(dst="00:11:22:33:44:66")/IP(src="192.168.0.0",dst="192.1.0.0", tos=4)/TCP(sport=22,dport=23)/Raw('x' * 80)],iface="enp134s0f1")
+
+   check the packet is redirected to queue 5 with FDIR matched ID=0x0.
+
+3. kill VF process in another shell::
+
+    ps -ef |grep testpmd #Check the process id
+    kill -9 <pid>
+
+4. testpmd shows::
+
+    testpmd> Killed
+
+   then relaunch testpmd.
+   the port can start normally without error message.
+
+5. check there is not rule listed on vf0 and vf1.
+
+6. repeat step 1-2.
+   check the rule can be created successfully,
+   and the packets can be redirected to queue 5 with FDIR matched ID=0x0.
+
 Test case: PFCP coverage test
 =============================
 Subcase 1: PFCP FDIR vlan strip on HW checksum offload check
-- 
2.17.1


             reply	other threads:[~2022-12-30  9:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-30 17:42 Hongbo Li [this message]
2022-12-30 17:42 ` [dts][PATCH V1 2/2] tests/ice_iavf_fdir: " Hongbo Li
2023-01-04  1:34   ` 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=20221230174227.10809-1-hongbox.li@intel.com \
    --to=hongbox.li@intel.com \
    --cc=dts@dpdk.org \
    --cc=yuan.peng@intel.com \
    /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).