test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH]test_plans: add port stop before port reset
@ 2020-03-23  6:28 Peng Yuan
  2020-03-25  3:04 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Peng Yuan @ 2020-03-23  6:28 UTC (permalink / raw)
  To: dts; +Cc: Peng Yuan

Add port stop before port reset, and add port start after port reset.

Signed-off-by: Peng Yuan <yuan.peng@intel.com>

diff --git a/test_plans/vf_pf_reset_test_plan.rst b/test_plans/vf_pf_reset_test_plan.rst
index 51a3e3d..d433d71 100644
--- a/test_plans/vf_pf_reset_test_plan.rst
+++ b/test_plans/vf_pf_reset_test_plan.rst
@@ -128,11 +128,11 @@ Test Case 1: vf reset -- create two vfs on one pf
 9. Reset the vfs, run the command::
 
      testpmd> stop
-     testpmd> port reset 0
-     testpmd> port reset 1
+     testpmd> port stop all
+     testpmd> port reset all
+     testpmd> port start all
      testpmd> start
 
-   or just run the command "port reset all".
    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::
@@ -269,7 +269,9 @@ Test Case 4: vlan rx restore -- vf reset all ports
 4. Reset both vfs::
 
      testpmd> stop
+     testpmd> port stop all
      testpmd> port reset all
+     testpmd> port start all
      testpmd> start
 
    Send the packets in step2 from tester,
@@ -313,7 +315,9 @@ test Case 5: vlan rx restore -- vf reset one port
 3. Pf reset, then reset vf0, send packets from tester::
 
      testpmd> stop
+     testpmd> port stop 0
      testpmd> port reset 0
+     testpmd> port start 0
      testpmd> start
      sendp([Ether(dst="00:11:22:33:44:11")/IP()/Raw('x'*1000)], \
      iface="ens3f0",count=1000)
@@ -333,7 +337,9 @@ test Case 5: vlan rx restore -- vf reset one port
 4. Reset vf1::
 
      testpmd> stop
+     testpmd> port stop 1
      testpmd> port reset 1
+     testpmd> port start 1
      testpmd> start
      sendp([Ether(dst="00:11:22:33:44:11")/IP()/Raw('x'*1000)], \
      iface="ens3f0",count=1000)
@@ -400,7 +406,9 @@ Test Case 6: vlan rx restore -- create one vf on each pf
 4. Reset both vfs, send packets from tester::
 
      testpmd> stop
+     testpmd> port stop all
      testpmd> port reset all
+     testpmd> port start all
      testpmd> start
      sendp([Ether(dst="00:11:22:33:44:11")/IP()/Raw('x'*1000)], \
      iface="ens3f0",count=1000)
-- 
2.7.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH]test_plans: add port stop before port reset
  2020-03-23  6:28 [dts] [PATCH]test_plans: add port stop before port reset Peng Yuan
@ 2020-03-25  3:04 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-03-25  3:04 UTC (permalink / raw)
  To: Peng, Yuan, dts; +Cc: Peng, Yuan

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng Yuan
> Sent: Monday, March 23, 2020 2:29 PM
> To: dts@dpdk.org
> Cc: Peng, Yuan <yuan.peng@intel.com>
> Subject: [dts] [PATCH]test_plans: add port stop before port reset
> 
> Add port stop before port reset, and add port start after port reset.
> 
> Signed-off-by: Peng Yuan <yuan.peng@intel.com>
> 
> diff --git a/test_plans/vf_pf_reset_test_plan.rst
> b/test_plans/vf_pf_reset_test_plan.rst
> index 51a3e3d..d433d71 100644
> --- a/test_plans/vf_pf_reset_test_plan.rst
> +++ b/test_plans/vf_pf_reset_test_plan.rst
> @@ -128,11 +128,11 @@ Test Case 1: vf reset -- create two vfs on one pf  9.
> Reset the vfs, run the command::
> 
>       testpmd> stop
> -     testpmd> port reset 0
> -     testpmd> port reset 1
> +     testpmd> port stop all
> +     testpmd> port reset all
> +     testpmd> port start all
>       testpmd> start
> 
> -   or just run the command "port reset all".
>     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::
> @@ -269,7 +269,9 @@ Test Case 4: vlan rx restore -- vf reset all ports  4.
> Reset both vfs::
> 
>       testpmd> stop
> +     testpmd> port stop all
>       testpmd> port reset all
> +     testpmd> port start all
>       testpmd> start
> 
>     Send the packets in step2 from tester, @@ -313,7 +315,9 @@ test Case 5:
> vlan rx restore -- vf reset one port  3. Pf reset, then reset vf0, send packets
> from tester::
> 
>       testpmd> stop
> +     testpmd> port stop 0
>       testpmd> port reset 0
> +     testpmd> port start 0
>       testpmd> start
>       sendp([Ether(dst="00:11:22:33:44:11")/IP()/Raw('x'*1000)], \
>       iface="ens3f0",count=1000)
> @@ -333,7 +337,9 @@ test Case 5: vlan rx restore -- vf reset one port  4.
> Reset vf1::
> 
>       testpmd> stop
> +     testpmd> port stop 1
>       testpmd> port reset 1
> +     testpmd> port start 1
>       testpmd> start
>       sendp([Ether(dst="00:11:22:33:44:11")/IP()/Raw('x'*1000)], \
>       iface="ens3f0",count=1000)
> @@ -400,7 +406,9 @@ Test Case 6: vlan rx restore -- create one vf on each
> pf  4. Reset both vfs, send packets from tester::
> 
>       testpmd> stop
> +     testpmd> port stop all
>       testpmd> port reset all
> +     testpmd> port start all
>       testpmd> start
>       sendp([Ether(dst="00:11:22:33:44:11")/IP()/Raw('x'*1000)], \
>       iface="ens3f0",count=1000)
> --
> 2.7.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23  6:28 [dts] [PATCH]test_plans: add port stop before port reset Peng Yuan
2020-03-25  3:04 ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox