From patchwork Tue Mar 7 13:48:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yong Wang X-Patchwork-Id: 21547 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 02C1E1BBE; Tue, 7 Mar 2017 13:35:26 +0100 (CET) Received: from mx5.zte.com.cn (mx5.zte.com.cn [63.217.80.70]) by dpdk.org (Postfix) with ESMTP id 1D35C3DC for ; Tue, 7 Mar 2017 13:35:22 +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,20170307203253 Received: from unknown (HELO mse01.zte.com.cn) (10.30.3.20) by localhost with (AES256-SHA encrypted) SMTP; 7 Mar 2017 12:32:53 -0000 Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id v27CZAgc019318; Tue, 7 Mar 2017 20:35:10 +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 2017030720351478-48480 ; Tue, 7 Mar 2017 20:35:14 +0800 From: Yong Wang To: jianfeng.tan@intel.com, yuanhan.liu@linux.intel.com Cc: dev@dpdk.org, Yong Wang Date: Tue, 7 Mar 2017 08:48:45 -0500 Message-Id: <1488894525-5430-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-07 20:35:14, Serialize by Router on notes_smtp/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2017-03-07 20:34:55, Serialize complete at 2017-03-07 20:34:55 X-MAIL: mse01.zte.com.cn v27CZAgc019318 X-HQIP: 127.0.0.1 Subject: [dpdk-dev] [PATCH] 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") Signed-off-by: Yong Wang Acked-by: John McNamara Acked-by: Yuanhan Liu --- doc/guides/howto/virtio_user_for_container_networking.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/guides/howto/virtio_user_for_container_networking.rst b/doc/guides/howto/virtio_user_for_container_networking.rst index dbb9319..d08a5e3 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,6 +122,7 @@ 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 \ + --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.