From: Yong Wang Date: Wed, 8 Mar 2017 07:45:53 +0000 (-0500) Subject: doc: fix parameter of virtio-user for container X-Git-Tag: spdx-start~3908 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=52d6beb9d2ba2353391db122345ba6ebdb340dd3;p=dpdk.git 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 --- 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.