From ef97d30812a4c0c12e9cf0ef8739b21a666bd482 Mon Sep 17 00:00:00 2001 From: Bernard Iremonger Date: Mon, 27 Jul 2015 16:54:37 +0100 Subject: [PATCH] doc: add bonding hotplug example in testpmd guide Signed-off-by: Bernard Iremonger --- 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 4652962d68..5272bf450d 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 ~~~~~~~~~~~ -- 2.20.1