[dpdk-dev] [PATCH v7 4/4] testpmd_app_ug: add example of re-attaching bonded port
Bernard Iremonger
bernard.iremonger at intel.com
Mon Jul 27 17:54:37 CEST 2015
Signed-off-by: Bernard Iremonger <bernard.iremonger at intel.com>
---
doc/guides/testpmd_app_ug/testpmd_funcs.rst | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst
index 4652962..5272bf4 100644
--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst
+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst
@@ -909,6 +909,19 @@ For example, to attach a port created by pcap PMD.
In this case, identifier is "eth_pcap0,iface=eth0".
This identifier format is the same as "--vdev" format of DPDK applications.
+For example, to re-attach a bonded port which has been previously detached,
+the mode and slave parameters must be given.
+
+.. code-block:: console
+
+ testpmd> port attach eth_bond_testpmd_0,mode=0,slave=1
+ Attaching a new port...
+ EAL: Initializing pmd_bond for eth_bond_testpmd_0
+ EAL: Create bonded device eth_bond_testpmd_0 on port 0 in mode 0 on socket 0.
+ Port 0 is attached. Now total ports is 1
+ Done
+
+
port detach
~~~~~~~~~~~
--
1.9.1
More information about the dev
mailing list