With the default use of --in-memory, OVS does not require
hugetlbfs to be mounted to work with DPDK.
Besides, testpmd runs fine in this mode too.

Signed-off-by: David Marchand <david.march...@redhat.com>
---
 Documentation/howto/dpdk.rst             |  2 +-
 Documentation/intro/install/dpdk.rst     | 12 ++----------
 Documentation/topics/dpdk/vhost-user.rst |  2 --
 3 files changed, 3 insertions(+), 13 deletions(-)

diff --git a/Documentation/howto/dpdk.rst b/Documentation/howto/dpdk.rst
index 137159a586..493e2c99e5 100644
--- a/Documentation/howto/dpdk.rst
+++ b/Documentation/howto/dpdk.rst
@@ -221,7 +221,7 @@ within the guest. To accomplish this, build the 
``dpdk-testpmd`` application as
 described in :ref:`dpdk-testpmd`. Once compiled, run the application::
 
     $ cd /path/to/dpdk/build/
-    $ ./dpdk-testpmd -c 0x3 --socket-mem 1024 -- --burst=64 -i
+    $ ./dpdk-testpmd -c 0x3 --in-memory -- --burst=64 -i
     $ set fwd mac retry
     $ start
 
diff --git a/Documentation/intro/install/dpdk.rst 
b/Documentation/intro/install/dpdk.rst
index 2d97149c46..a1939f9041 100644
--- a/Documentation/intro/install/dpdk.rst
+++ b/Documentation/intro/install/dpdk.rst
@@ -217,10 +217,6 @@ To verify hugepage configuration::
 
     $ grep HugePages_ /proc/meminfo
 
-Mount the hugepages, if not already mounted by default::
-
-    $ mount -t hugetlbfs none /dev/hugepages
-
 .. note::
 
    The amount of hugepage memory required can be affected by various
@@ -297,7 +293,7 @@ listed below. Defaults will be provided for all values not 
explicitly set.
   default will be used instead.
 
 ``dpdk-hugepage-dir``
-  Directory where hugetlbfs is mounted
+  Directory where hugetlbfs is mounted.
 
 ``vhost-sock-dir``
   Option to set the path to the vhost-user unix socket files.
@@ -421,7 +417,7 @@ steps to identify right PCIe slot.
 Advanced Hugepage Setup
 ~~~~~~~~~~~~~~~~~~~~~~~
 
-Allocate and mount 1 GB hugepages.
+Allocate 1 GB hugepages.
 
 - For persistent allocation of huge pages, add the following options to the
   kernel bootline::
@@ -454,10 +450,6 @@ Allocate and mount 1 GB hugepages.
     For run-time allocation of 1G huge pages, Contiguous Memory Allocator
     (``CONFIG_CMA``) has to be supported by kernel, check your Linux distro.
 
-Now mount the huge pages, if not already done so::
-
-    $ mount -t hugetlbfs -o pagesize=1G none /dev/hugepages
-
 Isolate Cores
 ~~~~~~~~~~~~~
 
diff --git a/Documentation/topics/dpdk/vhost-user.rst 
b/Documentation/topics/dpdk/vhost-user.rst
index 52bbfeb32f..0c0054b754 100644
--- a/Documentation/topics/dpdk/vhost-user.rst
+++ b/Documentation/topics/dpdk/vhost-user.rst
@@ -410,8 +410,6 @@ DPDK sources to VM and build DPDK as described in 
:ref:`dpdk-install`.
 Setup huge pages and DPDK devices using VFIO::
 
     $ sysctl vm.nr_hugepages=1024
-    $ mkdir -p /dev/hugepages
-    $ mount -t hugetlbfs hugetlbfs /dev/hugepages  # only if not already 
mounted
     $ driverctl set-override 0000:00:03.0 vfio-pci
     $ driverctl set-override 0000:00:04.0 vfio-pci
 
-- 
2.49.0

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to