From patchwork Wed Mar 8 05:17:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yong Wang X-Patchwork-Id: 21575 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 4A937952; Wed, 8 Mar 2017 05:04:36 +0100 (CET) Received: from mx7.zte.com.cn (mx7.zte.com.cn [202.103.147.169]) by dpdk.org (Postfix) with ESMTP id 133D8952 for ; Wed, 8 Mar 2017 05:04:33 +0100 (CET) X-scanvirus: By SEG_CYREN AntiVirus Engine X-scanresult: CLEAN X-MAILFROM: X-RCPTTO: X-FROMIP: 10.30.3.20 X-SEG-Scaned: 1 X-Received: unknown,10.30.3.20,20170308120259 Received: from unknown (HELO mse01.zte.com.cn) (10.30.3.20) by localhost with (AES256-SHA encrypted) SMTP; 8 Mar 2017 04:02:59 -0000 Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id v2844CLY064067; Wed, 8 Mar 2017 12:04:12 +0800 (GMT-8) (envelope-from wang.yong19@zte.com.cn) Received: from localhost.localdomain.localdomain ([10.43.166.165]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2017030812041563-83543 ; Wed, 8 Mar 2017 12:04:15 +0800 From: Yong Wang To: john.mcnamara@intel.com, yuanhan.liu@linux.intel.com Cc: dev@dpdk.org, Yong Wang Date: Wed, 8 Mar 2017 00:17:51 -0500 Message-Id: <1488950271-28524-1-git-send-email-wang.yong19@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2017-03-08 12:04:15, Serialize by Router on notes_smtp/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2017-03-08 12:03:52, Serialize complete at 2017-03-08 12:03:52 X-MAIL: mse01.zte.com.cn v2844CLY064067 X-HQIP: 127.0.0.1 Subject: [dpdk-dev] [PATCH v2] doc: fix parameter of virtio_user for container X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Update the "Virtio_user for Container Networking" doc, add the "--file-prefix" option to testpmd in host and container to avoid hugepage config file conflict. Fixes: 50665deebda0 ("doc: add guide to use virtio-user for container networking") --- v2: * Modify the fixline from two lines to one line. * Remove the unnecessary "_" in "--file-prefix" option. Signed-off-by: Yong Wang --- doc/guides/howto/virtio_user_for_container_networking.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/guides/howto/virtio_user_for_container_networking.rst b/doc/guides/howto/virtio_user_for_container_networking.rst index dbb9319..f71d071 100644 --- a/doc/guides/howto/virtio_user_for_container_networking.rst +++ b/doc/guides/howto/virtio_user_for_container_networking.rst @@ -111,7 +111,8 @@ some minor changes. .. code-block:: console $(testpmd) -l 0-1 -n 4 --socket-mem 1024,1024 \ - --vdev 'eth_vhost0,iface=/tmp/sock0' --no-pci -- -i + --vdev 'eth_vhost0,iface=/tmp/sock0' \ + --file-prefix=host --no-pci -- -i #. Start a container instance with a virtio-user port. @@ -121,7 +122,8 @@ some minor changes. -v /dev/hugepages:/dev/hugepages \ dpdk-app-testpmd testpmd -l 6-7 -n 4 -m 1024 --no-pci \ --vdev=virtio_user0,path=/var/run/usvhost \ - -- -i --txqflags=0xf00 --disable-hw-vlan + --file-prefix=container \ + -- -i --txqflags=0xf00 --disable-hw-vlan Note: If we run all above setup on the host, it's a shm-based IPC.