test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] modified hotplug tests
@ 2019-04-19 12:26 xuyanjie
  2019-04-23 21:33 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: xuyanjie @ 2019-04-19 12:26 UTC (permalink / raw)
  To: dts; +Cc: xuyanjie

Signed-off-by: xuyanjie <yanjie.xu@intel.com>

diff --git a/test_plans/hotplug_test_plan.rst b/test_plans/hotplug_test_plan.rst
index fb0b7e0..b065f46 100644
--- a/test_plans/hotplug_test_plan.rst
+++ b/test_plans/hotplug_test_plan.rst
@@ -50,13 +50,13 @@ Prerequisites
 =============
 
 Assume DPDK managed at least one device for physical or none for virtual.
-This feature only supports igb_uio now, for uio_pci_generic is
+This feature  supports igb_uio, vfio. for uio_pci_generic is
 on the way, will test it after enabled.
 
 To run the testpmd application in linuxapp environment with 4 lcores,
 4 channels with other default parameters in interactive mode::
 
-        $ ./testpmd -c 0xf -n 4 -- -i
+        $ ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i
 
 Test ENV:
 
@@ -75,11 +75,11 @@ Test Case 1: port detach & attach for physical devices with igb_uio
 
 1. Start testpmd::
 
-      $ ./testpmd -c 0xf -n 4 -- -i
+      $ ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i
 
 2. Bind new physical port to igb_uio(assume BDF 0000:02:00.0)::
 
-      # ./tools/dpdk_nic_bind -b igb_uio 0000:02:00.0
+      # ./usertools/dpdk-devbind.py -b igb_uio 0000:02:00.0
 
 3. Attach port 0::
 
@@ -127,11 +127,11 @@ Test Case 2: port detach and attach for physical devices with vfio
 
 1. Start testpmd::
 
-      $ ./testpmd -c 0xf -n 4 -- -i
+      $ ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i
 
 2. Bind new physical port to igb_uio(assume BDF 0000:02:00.0)::
 
-      # ./tools/dpdk_nic_bind -b vfio-pci 0000:02:00.0
+      # ./usertools/dpdk-devbind.py -b vfio-pci 0000:02:00.0
 
 3. Attach port 0(assume BDF 0000:02:00.0)::
 
@@ -147,21 +147,20 @@ Test Case 2: port detach and attach for physical devices with vfio
 
       run "port close 0".
 
-      run "port detach 0", check detach status(should fail as no detach
-                         support at the moment for vfio).
+      run "port detach 0", check detach status(should ok).
 
 Test Case 3: port detach & attach for physical devices with uio_pci_generic
 ===========================================================================
 
-This case should be enabled after uio_pci_generic enabled for DPDK
+This case should be enabled after uio_pci_generic enabled for DPDK (not implemented)
 
 1. Start testpmd::
 
-      $ ./testpmd -c 0xf -n 4 -- -i
+      $  ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i
 
 2. Bind new physical port to igb_uio(assume BDF 0000:02:00.0)::
 
-      # ./tools/dpdk_nic_bind -b uio_pci_generic 0000:02:00.0
+      # ./usertools/dpdk-devbind.py -b uio_pci_generic 0000:02:00.0
 
 3. Attach port 0(assume BDF 0000:02:00.0)::
 
@@ -211,11 +210,11 @@ Bind driver before testpmd started, port will start automatically
 
 1. Bind new physical port to igb_uio(assume BDF 0000:02:00.0)::
 
-      # ./tools/dpdk_nic_bind -b uio_pci_generic 0000:02:00.0
+      # ./usertools/dpdk-devbind.py -b uio_pci_generic 0000:02:00.0
 
 2. Start testpmd::
 
-      $ ./testpmd -c 0xf -n 4 -- -i
+      $ ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i
 
 3. Check package forwarding when startup::
 
@@ -254,7 +253,7 @@ Test Case 5: port detach & attach for virtual devices
 
 1. Start testpmd::
 
-      $ ./testpmd -c 0xf -n 4 -- -i
+      $ ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i
 
 2. Attach virtual device as port 0::
 
@@ -302,7 +301,7 @@ Test Case 6: port detach & attach for virtual devices, with "--vdev"
 
 1. Start testpmd, ""xxxx" is one workable ifname::
 
-      $ ./testpmd -c 0xf -n 4 --vdev "eth_pcap0,iface=xxxx" -- -i
+      $ ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 --vdev "eth_pcap0,iface=xxxx" -- -i
 
 2. Check package forwarding after port start::
 
-- 
2.7.4


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

* Re: [dts] [PATCH] modified hotplug tests
  2019-04-19 12:26 [dts] [PATCH] modified hotplug tests xuyanjie
@ 2019-04-23 21:33 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2019-04-23 21:33 UTC (permalink / raw)
  To: Xu, Yanjie, dts; +Cc: Xu, Yanjie

Hi Yanjie,
uio_pci_generic is still not supported, right? 

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xuyanjie
> Sent: Friday, April 19, 2019 5:26 AM
> To: dts@dpdk.org
> Cc: Xu, Yanjie <yanjie.xu@intel.com>
> Subject: [dts] [PATCH] modified hotplug tests
> 
> Signed-off-by: xuyanjie <yanjie.xu@intel.com>
> 
> diff --git a/test_plans/hotplug_test_plan.rst
> b/test_plans/hotplug_test_plan.rst
> index fb0b7e0..b065f46 100644
> --- a/test_plans/hotplug_test_plan.rst
> +++ b/test_plans/hotplug_test_plan.rst
> @@ -50,13 +50,13 @@ Prerequisites
>  =============
> 
>  Assume DPDK managed at least one device for physical or none for virtual.
> -This feature only supports igb_uio now, for uio_pci_generic is
> +This feature  supports igb_uio, vfio. for uio_pci_generic is
>  on the way, will test it after enabled.
> 
>  To run the testpmd application in linuxapp environment with 4 lcores,
>  4 channels with other default parameters in interactive mode::
> 
> -        $ ./testpmd -c 0xf -n 4 -- -i
> +        $ ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i
> 
>  Test ENV:
> 
> @@ -75,11 +75,11 @@ Test Case 1: port detach & attach for physical devices
> with igb_uio
> 
>  1. Start testpmd::
> 
> -      $ ./testpmd -c 0xf -n 4 -- -i
> +      $ ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i
> 
>  2. Bind new physical port to igb_uio(assume BDF 0000:02:00.0)::
> 
> -      # ./tools/dpdk_nic_bind -b igb_uio 0000:02:00.0
> +      # ./usertools/dpdk-devbind.py -b igb_uio 0000:02:00.0
> 
>  3. Attach port 0::
> 
> @@ -127,11 +127,11 @@ Test Case 2: port detach and attach for physical
> devices with vfio
> 
>  1. Start testpmd::
> 
> -      $ ./testpmd -c 0xf -n 4 -- -i
> +      $ ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i
> 
>  2. Bind new physical port to igb_uio(assume BDF 0000:02:00.0)::
> 
> -      # ./tools/dpdk_nic_bind -b vfio-pci 0000:02:00.0
> +      # ./usertools/dpdk-devbind.py -b vfio-pci 0000:02:00.0
> 
>  3. Attach port 0(assume BDF 0000:02:00.0)::
> 
> @@ -147,21 +147,20 @@ Test Case 2: port detach and attach for physical
> devices with vfio
> 
>        run "port close 0".
> 
> -      run "port detach 0", check detach status(should fail as no detach
> -                         support at the moment for vfio).
> +      run "port detach 0", check detach status(should ok).
> 
>  Test Case 3: port detach & attach for physical devices with uio_pci_generic
> ================================================================
> ===========
> 
> -This case should be enabled after uio_pci_generic enabled for DPDK
> +This case should be enabled after uio_pci_generic enabled for DPDK (not
> +implemented)
> 
>  1. Start testpmd::
> 
> -      $ ./testpmd -c 0xf -n 4 -- -i
> +      $  ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i
> 
>  2. Bind new physical port to igb_uio(assume BDF 0000:02:00.0)::
> 
> -      # ./tools/dpdk_nic_bind -b uio_pci_generic 0000:02:00.0
> +      # ./usertools/dpdk-devbind.py -b uio_pci_generic 0000:02:00.0
> 
>  3. Attach port 0(assume BDF 0000:02:00.0)::
> 
> @@ -211,11 +210,11 @@ Bind driver before testpmd started, port will start
> automatically
> 
>  1. Bind new physical port to igb_uio(assume BDF 0000:02:00.0)::
> 
> -      # ./tools/dpdk_nic_bind -b uio_pci_generic 0000:02:00.0
> +      # ./usertools/dpdk-devbind.py -b uio_pci_generic 0000:02:00.0
> 
>  2. Start testpmd::
> 
> -      $ ./testpmd -c 0xf -n 4 -- -i
> +      $ ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i
> 
>  3. Check package forwarding when startup::
> 
> @@ -254,7 +253,7 @@ Test Case 5: port detach & attach for virtual devices
> 
>  1. Start testpmd::
> 
> -      $ ./testpmd -c 0xf -n 4 -- -i
> +      $ ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i
> 
>  2. Attach virtual device as port 0::
> 
> @@ -302,7 +301,7 @@ Test Case 6: port detach & attach for virtual devices,
> with "--vdev"
> 
>  1. Start testpmd, ""xxxx" is one workable ifname::
> 
> -      $ ./testpmd -c 0xf -n 4 --vdev "eth_pcap0,iface=xxxx" -- -i
> +      $ ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 --vdev
> + "eth_pcap0,iface=xxxx" -- -i
> 
>  2. Check package forwarding after port start::
> 
> --
> 2.7.4


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

end of thread, other threads:[~2019-04-23 21:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-19 12:26 [dts] [PATCH] modified hotplug tests xuyanjie
2019-04-23 21:33 ` Tu, Lijuan

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