From 52d6beb9d2ba2353391db122345ba6ebdb340dd3 Mon Sep 17 00:00:00 2001 From: Yong Wang Date: Wed, 8 Mar 2017 02:45:53 -0500 Subject: [PATCH] doc: fix parameter of virtio-user for container 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") Cc: stable@dpdk.org Signed-off-by: Yong Wang Acked-by: John McNamara Acked-by: Yuanhan Liu --- 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 dbb9319577..f71d07185a 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. -- 2.20.1