From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tetsuya Mukawa Subject: Re: [PATCH v6] testpmd: Add port hotplug support Date: Tue, 03 Feb 2015 19:31:07 +0900 Message-ID: <54D0A36B.6030306@igel.co.jp> References: <1421664027-17971-9-git-send-email-mukawa@igel.co.jp> <1422763322-13742-1-git-send-email-mukawa@igel.co.jp> <1422763322-13742-16-git-send-email-mukawa@igel.co.jp> <8CEF83825BEC744B83065625E567D7C2049DCAD2@IRSMSX108.ger.corp.intel.com> <54D0251C.2050407@igel.co.jp> <8CEF83825BEC744B83065625E567D7C2049DCF56@IRSMSX108.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit To: "Iremonger, Bernard" , "dev-VfR2kkLFssw@public.gmane.org" Return-path: In-Reply-To: <8CEF83825BEC744B83065625E567D7C2049DCF56-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi Bernard, I appreciate your checking. I will fix like below. Tetsuya On 2015/02/03 19:03, Iremonger, Bernard wrote: >>>> +.. code-block:: console >>>> + >>>> + testpmd> port attach 0000:02:00.0 >>>> + Attaching a new port... >>>> + ... snip ... >>>> + Port 0 is attached. Now total ports is 1 >>>> + Done >>>> +port detach >>>> +~~~~~~~~~~~ >>>> + >>>> +Detach a specific port. >>>> + >>>> +Before detaching a port, the port should be closed. >>>> +Also to remove a pci device completely from the system, first detach the port from testpmd. >>>> +Then the device should be moved under kernel management. >>>> +Finally the device can be remove using kernel pci hotplug functionality. > Hi Tetsuya, > Reword "remove" to "removed" > >>>> +On the other hand, to remove a port created by virtual device, above steps are not needed. > Reword " created by virtual device" to "created by a virtual device" > >>>> + >>>> +port detach (port_id) >>>> + >>>> +For example, to detach a port 0. >>>> + >>>> +.. code-block:: console >>>> + >>>> + testpmd> port detach 0 >>>> + Detaching a port... >>>> + ... snip ... >>>> + Done >>>> + >>>> port start >>>> ~~~~~~~~~~ >>>> >>>> -- >>>> 1.9.1 >>> Regards, >>> >>> Bernard. >>>