From: Yong Wang <wang.yong19@zte.com.cn>
To: john.mcnamara@intel.com, yuanhan.liu@linux.intel.com
Cc: dev@dpdk.org, Yong Wang <wang.yong19@zte.com.cn>
Subject: [dpdk-dev] [PATCH v3] doc: fix parameter of virtio_user for container
Date: Wed, 8 Mar 2017 02:45:53 -0500 [thread overview]
Message-ID: <1488959153-10341-1-git-send-email-wang.yong19@zte.com.cn> (raw)
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 <wang.yong19@zte.com.cn>
---
v3:
* Modify the commit message.
v2:
* Modify the fixline from two lines to one line.
* Remove the unnecessary "_" in "--file-prefix" option.
Acked-by: John McNamara <john.mcnamara@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
---
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.
--
1.8.3.1
next reply other threads:[~2017-03-08 6:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-08 7:45 Yong Wang [this message]
2017-03-22 9:01 ` Yuanhan Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1488959153-10341-1-git-send-email-wang.yong19@zte.com.cn \
--to=wang.yong19@zte.com.cn \
--cc=dev@dpdk.org \
--cc=john.mcnamara@intel.com \
--cc=yuanhan.liu@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).