DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] doc: clarify port detaching/attaching in testpmd
@ 2016-06-08 15:40 Pablo de Lara
  2016-06-08 16:36 ` Thomas Monjalon
  2016-06-08 16:37 ` Mcnamara, John
  0 siblings, 2 replies; 3+ messages in thread
From: Pablo de Lara @ 2016-06-08 15:40 UTC (permalink / raw)
  To: dev, bernard.iremonger, mukawa; +Cc: Pablo de Lara

Port needs to be stopped and then closed before it can be detached,
but the documentation was only saying to close the port.

Also, both sections for port detaching and attaching has been reformatted
slightly, to show clearly how to use the commands.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
---
 doc/guides/testpmd_app_ug/testpmd_funcs.rst | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst
index aed5e47..c4048ae 100644
--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst
+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst
@@ -980,7 +980,9 @@ The following sections show functions for configuring ports.
 port attach
 ~~~~~~~~~~~
 
-Attach a port specified by pci address or virtual device args.
+Attach a port specified by pci address or virtual device args::
+
+   testpmd> port attach (identifier)
 
 To attach a new pci device, the device should be recognized by kernel first.
 Then it should be moved under DPDK management.
@@ -1014,8 +1016,6 @@ For example, to move a pci device using ixgbe under DPDK management:
 
 To attach a port created by virtual device, above steps are not needed.
 
-port attach (identifier)
-
 For example, to attach a port whose pci address is 0000:0a:00.0.
 
 .. code-block:: console
@@ -1061,16 +1061,19 @@ the mode and slave parameters must be given.
 port detach
 ~~~~~~~~~~~
 
-Detach a specific port.
-
-Before detaching a port, the port should be closed::
+Detach a specific port::
 
    testpmd> port detach (port_id)
 
+Before detaching a port, the port should be stopped and closed.
+
 For example, to detach a pci device port 0.
 
 .. code-block:: console
 
+   testpmd> port stop 0
+   Stopping ports...
+   Done
    testpmd> port close 0
    Closing ports...
    Done
@@ -1088,6 +1091,9 @@ For example, to detach a virtual device port 0.
 
 .. code-block:: console
 
+   testpmd> port stop 0
+   Stopping ports...
+   Done
    testpmd> port close 0
    Closing ports...
    Done
-- 
2.5.5

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

* Re: [dpdk-dev] [PATCH] doc: clarify port detaching/attaching in testpmd
  2016-06-08 15:40 [dpdk-dev] [PATCH] doc: clarify port detaching/attaching in testpmd Pablo de Lara
@ 2016-06-08 16:36 ` Thomas Monjalon
  2016-06-08 16:37 ` Mcnamara, John
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2016-06-08 16:36 UTC (permalink / raw)
  To: Pablo de Lara; +Cc: dev, bernard.iremonger, mukawa

2016-06-08 16:40, Pablo de Lara:
> Port needs to be stopped and then closed before it can be detached,
> but the documentation was only saying to close the port.
> 
> Also, both sections for port detaching and attaching has been reformatted
> slightly, to show clearly how to use the commands.
> 
> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>

Applied, thanks

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

* Re: [dpdk-dev] [PATCH] doc: clarify port detaching/attaching in testpmd
  2016-06-08 15:40 [dpdk-dev] [PATCH] doc: clarify port detaching/attaching in testpmd Pablo de Lara
  2016-06-08 16:36 ` Thomas Monjalon
@ 2016-06-08 16:37 ` Mcnamara, John
  1 sibling, 0 replies; 3+ messages in thread
From: Mcnamara, John @ 2016-06-08 16:37 UTC (permalink / raw)
  To: De Lara Guarch, Pablo, dev, Iremonger, Bernard, mukawa
  Cc: De Lara Guarch, Pablo

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Pablo de Lara
> Sent: Wednesday, June 8, 2016 4:40 PM
> To: dev@dpdk.org; Iremonger, Bernard <bernard.iremonger@intel.com>;
> mukawa@igel.co.jp
> Cc: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>
> Subject: [dpdk-dev] [PATCH] doc: clarify port detaching/attaching in
> testpmd
> 
> Port needs to be stopped and then closed before it can be detached, but
> the documentation was only saying to close the port.
> 
> Also, both sections for port detaching and attaching has been reformatted
> slightly, to show clearly how to use the commands.
> 
> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>


Acked-by: John McNamara <john.mcnamara@intel.com>

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

end of thread, other threads:[~2016-06-08 16:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-08 15:40 [dpdk-dev] [PATCH] doc: clarify port detaching/attaching in testpmd Pablo de Lara
2016-06-08 16:36 ` Thomas Monjalon
2016-06-08 16:37 ` Mcnamara, John

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