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>, Tang Yaqi <yaqi.tang@intel.com>
Subject: [dts][PATCH V2 1/2] test_plans/vf_pf_reset: add new case and plan for pf_reset_trigger_vf_reset
Date: Fri,  6 Jan 2023 18:27:57 +0800	[thread overview]
Message-ID: <20230106102758.11043-1-hongbox.li@intel.com> (raw)

add case test_pf_reset_trigger_vf_reset according to test plan.

Signed-off-by: Tang Yaqi <yaqi.tang@intel.com>
Signed-off-by: Hongbo Li <hongbox.li@intel.com>
---

v2:
-modify git comments
 test_plans/vf_pf_reset_test_plan.rst | 40 ++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/test_plans/vf_pf_reset_test_plan.rst b/test_plans/vf_pf_reset_test_plan.rst
index 866214f7..cc204e26 100644
--- a/test_plans/vf_pf_reset_test_plan.rst
+++ b/test_plans/vf_pf_reset_test_plan.rst
@@ -630,3 +630,43 @@ test Case 10: vf reset (two vfs passed through to two VM)
 
 8. Reset vf0 and vf1, send the two packets,
    vf0 can forward both of the two type packets to VF1.
+
+test case 11: pf reset trigger vf reset
+=======================================
+
+1. Execute step1-step6 of test case 1.
+
+2. Reset PF::
+
+     echo 1 > /sys/bus/pci/devices/0000:81:00.0/reset
+
+3. Testpmd shows::
+
+     Port 0: reset event
+     Port 1: reset event
+
+4. Reset the vfs::
+
+     testpmd> stop
+     testpmd> port stop all
+     testpmd> port reset all
+     testpmd> port start all
+     testpmd> start
+
+   Send the same 1000 packets with scapy from tester, verify the packets can be
+   received by one VF and can be forward to another VF correctly,
+   check the port info::
+
+     testpmd> show port info all
+
+     ********************* Infos for port 0  *********************
+     MAC address: 00:11:22:33:44:11
+     Promiscuous mode: disabled
+     Allmulticast mode: enabled
+
+     ********************* Infos for port 1  *********************
+     MAC address: 00:11:22:33:44:12
+     Promiscuous mode: disabled
+     Allmulticast mode: enabled
+
+   The info status is consistent to the status before reset.
-- 
2.17.1


             reply	other threads:[~2023-01-06  2:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-06 10:27 Hongbo Li [this message]
2023-01-06 10:27 ` [dts][PATCH V2 2/2] tests/vf_pf_reset: " Hongbo Li
2023-01-10  7:26   ` Jiale, SongX
2023-01-10  7:36   ` 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=20230106102758.11043-1-hongbox.li@intel.com \
    --to=hongbox.li@intel.com \
    --cc=dts@dpdk.org \
    --cc=yaqi.tang@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).