Skip to contentSkip to conversation

docs: Unify Getting Started Guides

PATCH Superseded David Young 5 participants 28 messages Sep 20, 2023 – Oct 17, 2023 Arm/Amlogic Meson SoC support

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

cover docs: Unify Getting Started Guides

The separate Getting Started Guides for Linux, FreeBSD, and Windows have been consolidated into a single, streamlined guide to simplify the user experience and facilitate easier maintenance.

David Young (6):
Section 1: Introduction
Section 2: Install and Build DPDK
Section 3: Setting up a System to Run DPDK Applications Section 4: Running Applications
Section 5: Appendix
Section 6: Glossary

 .../appendix/cross_compile_dpdk.rst           |  37 +++
 .../appendix/dpdk_meson_build_options.rst     |  57 ++++
 .../getting_started_guide/appendix/index.rst  |  17 +
 .../running_dpdk_apps_without_root.rst        |  36 +++
 .../appendix/vfio_advanced.rst                | 295 ++++++++++++++++++
 doc/guides/getting_started_guide/glossary.rst |  75 +++++
 .../building_from_sources.rst                 | 108 +++++++
 .../install_and_build/index.rst               |  15 +
 .../installing_prebuilt_packages.rst          |  54 ++++
 .../windows_install_build.rst                 |  93 ++++++
 doc/guides/getting_started_guide/intro.rst    |  16 +
 .../getting_started_guide/run_apps/index.rst  |  10 +
 .../run_apps/run_apps.rst                     | 118 +++++++
 .../getting_started_guide/system_setup.rst    | 195 ++++++++++++
 14 files changed, 1126 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/appendix/cross_compile_dpdk.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/dpdk_meson_build_options.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/index.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/running_dpdk_apps_without_root.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/vfio_advanced.rst
 create mode 100644 doc/guides/getting_started_guide/glossary.rst
 create mode 100644 doc/guides/getting_started_guide/install_and_build/building_from_sources.rst
 create mode 100644 doc/guides/getting_started_guide/install_and_build/index.rst
 create mode 100644 doc/guides/getting_started_guide/install_and_build/installing_prebuilt_packages.rst
 create mode 100644 doc/guides/getting_started_guide/install_and_build/windows_install_build.rst
 create mode 100644 doc/guides/getting_started_guide/intro.rst
 create mode 100644 doc/guides/getting_started_guide/run_apps/index.rst
 create mode 100644 doc/guides/getting_started_guide/run_apps/run_apps.rst
 create mode 100644 doc/guides/getting_started_guide/system_setup.rst
Signature · 1 line
2.41.0.windows.1
#1 lore raw

PATCH 1/6 Section 1: Introduction

---
 doc/guides/getting_started_guide/intro.rst | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/intro.rst
doc/guides/getting_started_guide/intro.rst new file +16 -0
new file mode 100644
index 0000000000..88bdd48849
@@ -0,0 +1,16 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2014 Intel Corporation.
+
+Introduction
+============
+
+Welcome to the unified getting started guide for the Data Plane Development Kit (DPDK) covering Linux, FreeBSD, and Windows. DPDK is a set of libraries and
+drivers that accelerate packet processing and allow the user to create high-performance
+networking applications.
+
+The guide is structured to provide basic step-by-step instructions with OS-specific instructions for each operating system where necessary. 
+By the end of this guide, you should have a solid understanding of how to implement and
+use DPDK in your networking projects, regardless of the operating system you are using.
+
+We hope this guide serves as a valuable resource as you explore the powerful
+capabilities of DPDK.
\ No newline at end of file
Signature · 1 line
2.41.0.windows.1
#2 lore raw

Re: [PATCH 1/6] Section 1: Introduction

Quoted 12 lines · David Young
---
 doc/guides/getting_started_guide/intro.rst | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/intro.rst
doc/guides/getting_started_guide/intro.rst new file +0 -0
new file mode 100644
index 0000000000..88bdd48849

doc/guides/getting_started_guide/intro.rst line 7

Quoted 7 lines
doc/guides/getting_started_guide/intro.rst new file +7 -0
@@ -0,0 +1,16 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2014 Intel Corporation.
+
+Introduction
+============
+
+Welcome to the unified getting started guide for the Data Plane Development Kit (DPDK) covering Linux, FreeBSD, and Windows. DPDK is a set of libraries and

'unified' makes sense only with the context of this effort, for anyone who is reading this for the first time it may not mean much, I suggest just drop it: "Welcome to the getting started guide for ..."

doc/guides/getting_started_guide/intro.rst line 16

Quoted 10 lines
doc/guides/getting_started_guide/intro.rst new file +9 -0
+drivers that accelerate packet processing and allow the user to create high-performance
+networking applications.
+
+The guide is structured to provide basic step-by-step instructions with OS-specific instructions for each operating system where necessary. 
+By the end of this guide, you should have a solid understanding of how to implement and
+use DPDK in your networking projects, regardless of the operating system you are using.
+
+We hope this guide serves as a valuable resource as you explore the powerful
+capabilities of DPDK.
\ No newline at end of file

Last paragraph feels like marketing text :), I would be OK without it, but this is personal preference.

author
#3 lore raw

Re: [PATCH 1/6] Section 1: Introduction

Thank you for the feedback. I agree with the suggested changes to remove "unified" and the last paragraph. These changes have been made locally. I plan to send updated versions of all patches in this series at the same time, so you can expect to see these adjustments in the next version.

Thanks!
David Young
Professional Copywriter/Technical Writer
Young Copy
+1 (678) 500-9550
https://www.youngcopy.com

Quoted 49 lines · Ferruh Yigit

Review

Quoted 6 lines · David Young
---
 doc/guides/getting_started_guide/intro.rst | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/intro.rst
(quoted diff) +0 -0

b/doc/guides/getting_started_guide/intro.rst

doc/guides/getting_started_guide/intro.rst line 7

Quoted 12 lines

new file mode 100644
index 0000000000..88bdd48849

doc/guides/getting_started_guide/intro.rst new file +7 -0
@@ -0,0 +1,16 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2014 Intel Corporation.
+
+Introduction
+============
+
+Welcome to the unified getting started guide for the Data Plane

Development Kit (DPDK) covering Linux, FreeBSD, and Windows. DPDK is a set of libraries and

Quoted 1 line

'unified' makes sense only with the context of this effort, for anyone who is reading this for the first time it may not mean much, I suggest just drop it: "Welcome to the getting started guide for ..."

Quoted 1 line

+drivers that accelerate packet processing and allow the user to create

high-performance

doc/guides/getting_started_guide/intro.rst

Quoted 3 lines
doc/guides/getting_started_guide/intro.rst new file +3 -0
+networking applications.
+
+The guide is structured to provide basic step-by-step instructions with

OS-specific instructions for each operating system where necessary.

Quoted 1 line

+By the end of this guide, you should have a solid understanding of how

to implement and

Quoted 1 line

+use DPDK in your networking projects, regardless of the operating

system you are using.

doc/guides/getting_started_guide/intro.rst

Quoted 2 lines
doc/guides/getting_started_guide/intro.rst new file +2 -0
+
+We hope this guide serves as a valuable resource as you explore the

powerful

Quoted 2 lines

+capabilities of DPDK.
\ No newline at end of file

Last paragraph feels like marketing text :), I would be OK without it, but this is personal preference.

#4 lore raw

PATCH 2/6 Section 2: Install and Build DPDK

In reply to David Young
---
 .../building_from_sources.rst                 | 108 ++++++++++++++++++
 .../install_and_build/index.rst               |  15 +++
 .../installing_prebuilt_packages.rst          |  54 +++++++++
 .../windows_install_build.rst                 |  93 +++++++++++++++
 4 files changed, 270 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/install_and_build/building_from_sources.rst
 create mode 100644 doc/guides/getting_started_guide/install_and_build/index.rst
 create mode 100644 doc/guides/getting_started_guide/install_and_build/installing_prebuilt_packages.rst
 create mode 100644 doc/guides/getting_started_guide/install_and_build/windows_install_build.rst
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +108 -0
new file mode 100644
index 0000000000..e4ee8e436d
@@ -0,0 +1,108 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _building_from_sources:
+
+Building and Installing DPDK from Sources
+=========================================
+
+This chapter provides a comprehensive guide for building DPDK from sources on both
+Linux and FreeBSD platforms. It covers the necessary steps, prerequisites, 
+and considerations for different architectures and compilers.
+
+Required Tools
+--------------
+
+To build DPDK, you'll need the following tools:
+
+- A C compiler like ``gcc`` (version 5+) or ``clang`` (version 3.6+)
+- ``pkg-config`` or ``pkgconf``
+- Python 3.6 or later
+- ``meson`` (version 0.53.2+) and ``ninja``
+- ``pyelftools`` (version 0.22+)
+
+Here's how to install them:
+
+Linux
+^^^^^
+
+Alpine
+
+.. code-block:: bash
+
+   sudo apk add alpine-sdk bsd-compat-headers
+   pip install meson ninja
+
+Debian and Ubuntu and derivatives
+
+.. code-block:: bash
+
+   sudo apt install build-essential
+   pip install meson ninja
+
+Fedora and RedHat Enterprise Linux RHEL
+
+.. code-block:: bash
+
+   sudo dnf groupinstall "Development Tools"
+   pip install meson ninja
+
+openSUSE
+
+.. code-block:: bash
+
+   sudo zypper install -t pattern devel_basis python3-pyelftools
+   pip install meson ninja
+
+FreeBSD
+^^^^^^^
+
+FreeBSD (as root)
+
+.. code-block:: bash
+
+   pkg install meson pkgconf py38-pyelftools
+
+Note: If you're using FreeBSD, you'll also need kernel sources. Make sure they're included during the FreeBSD installation.
+
+Getting the DPDK Source
+-----------------------
+
+Download the DPDK source code from the official repository 
+``https://fast.dpdk.org/rel/``.
+
+Use ``wget`` to grab the DPDK version::
+
+        wget https://fast.dpdk.org/rel/dpdk-<version>.tar.xz
+
+Extract the downloaded archive:
+
+.. code-block:: bash
+
+   tar -xvf dpdk-<version>.tar.gz
+
+Navigate to the DPDK directory:
+
+.. code-block:: bash
+
+   cd dpdk-<version>
+
+Building DPDK
+-------------
+
+Configure the build based on your needs, hardware, and environment. 
+This might include setting specific flags or options. For example: “meson setup -Dbuildtype=debugoptimized build”. Then compile using “ninja” and install using “meson install”.
+
+.. code-block:: bash
+
+   ninja -C build
+   cd build
+   sudo ninja install
+   ldconfig
+
+For detailed information on Meson build configuration options specific to DPDK, see :ref:`DPDK Meson Build Configuration Options <dpdk_meson_build_options>`.
+
+Cross-Compilation Instructions for Different Architectures
+----------------------------------------------------------
+
+For instructions on building DPDK for ARM64, LoongArch, and RISC-V, refer to :ref:`cross_compile_dpdk`.
doc/guides/getting_started_guide/install_and_build/index.rst new file +15 -0
new file mode 100644
index 0000000000..f4d8740fb6
@@ -0,0 +1,15 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _install_and_build:
+
+Install and Build DPDK
+======================
+
+.. toctree::
+    :maxdepth: 2
+
+    
+    installing_prebuilt_packages
+    building_from_sources
+    windows_install_build
\ No newline at end of file
doc/guides/getting_started_guide/install_and_build/installing_prebuilt_packages.rst new file +54 -0

55 lines not on this page · raw message

doc/guides/getting_started_guide/install_and_build/windows_install_build.rst new file +93 -0

94 lines not on this page · raw message

Signature · 1 line
2.41.0.windows.1
#5 lore raw

Re: [PATCH 2/6] Section 2: Install and Build DPDK

Quoted 31 lines · David Young
---
 .../building_from_sources.rst                 | 108 ++++++++++++++++++
 .../install_and_build/index.rst               |  15 +++
 .../installing_prebuilt_packages.rst          |  54 +++++++++
 .../windows_install_build.rst                 |  93 +++++++++++++++
 4 files changed, 270 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/install_and_build/building_from_sources.rst
 create mode 100644 doc/guides/getting_started_guide/install_and_build/index.rst
 create mode 100644 doc/guides/getting_started_guide/install_and_build/installing_prebuilt_packages.rst
 create mode 100644 doc/guides/getting_started_guide/install_and_build/windows_install_build.rst
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +13 -0
new file mode 100644
index 0000000000..e4ee8e436d
@@ -0,0 +1,108 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _building_from_sources:
+
+Building and Installing DPDK from Sources
+=========================================
+
+This chapter provides a comprehensive guide for building DPDK from sources on both
+Linux and FreeBSD platforms. It covers the necessary steps, prerequisites, 
+and considerations for different architectures and compilers.
+
+Required Tools

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst line 23

Quoted 10 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +10 -0
+--------------
+
+To build DPDK, you'll need the following tools:
+
+- A C compiler like ``gcc`` (version 5+) or ``clang`` (version 3.6+)
+- ``pkg-config`` or ``pkgconf``
+- Python 3.6 or later
+- ``meson`` (version 0.53.2+) and ``ninja``
+- ``pyelftools`` (version 0.22+)
+

Is 'libnuma' also a dependency?

When I remove it in my platform and build DPDK again, getting following in meson stage:

"
config/meson.build:419:4: ERROR: Problem encountered:
No NUMA library (development package) found, yet DPDK configured for multiple NUMA nodes.
Please install libnuma, or set 'max_numa_nodes' option to '1' to build without NUMA support.
"

Quoted 16 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +16 -0
+Here's how to install them:
+
+Linux
+^^^^^
+
+Alpine
+
+.. code-block:: bash
+
+   sudo apk add alpine-sdk bsd-compat-headers
+   pip install meson ninja
+
+Debian and Ubuntu and derivatives
+
+.. code-block:: bash
+

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst line 49

Quoted 10 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +10 -0
+   sudo apt install build-essential
+   pip install meson ninja
+
+Fedora and RedHat Enterprise Linux RHEL
+
+.. code-block:: bash
+
+   sudo dnf groupinstall "Development Tools"
+   pip install meson ninja
+

Above are missing some of the dependencies above, just to confirm if they are installed by default?
And even if so, if we should provide explicit commands to install all, to be sure?

Quoted 41 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +41 -0
+openSUSE
+
+.. code-block:: bash
+
+   sudo zypper install -t pattern devel_basis python3-pyelftools
+   pip install meson ninja
+
+FreeBSD
+^^^^^^^
+
+FreeBSD (as root)
+
+.. code-block:: bash
+
+   pkg install meson pkgconf py38-pyelftools
+
+Note: If you're using FreeBSD, you'll also need kernel sources. Make sure they're included during the FreeBSD installation.
+
+Getting the DPDK Source
+-----------------------
+
+Download the DPDK source code from the official repository 
+``https://fast.dpdk.org/rel/``.
+
+Use ``wget`` to grab the DPDK version::
+
+        wget https://fast.dpdk.org/rel/dpdk-<version>.tar.xz
+
+Extract the downloaded archive:
+
+.. code-block:: bash
+
+   tar -xvf dpdk-<version>.tar.gz
+
+Navigate to the DPDK directory:
+
+.. code-block:: bash
+
+   cd dpdk-<version>
+
+Building DPDK

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst

Quoted 10 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +10 -0
+-------------
+
+Configure the build based on your needs, hardware, and environment. 
+This might include setting specific flags or options. For example: “meson setup -Dbuildtype=debugoptimized build”. Then compile using “ninja” and install using “meson install”.
+
+.. code-block:: bash
+
+   ninja -C build
+   cd build
+   sudo ninja install>

Above mentions from "meson install", here using "ninja install", should we unify it to one?

Quoted 14 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +8 -0
+   ldconfig
+
+For detailed information on Meson build configuration options specific to DPDK, see :ref:`DPDK Meson Build Configuration Options <dpdk_meson_build_options>`.
+
+Cross-Compilation Instructions for Different Architectures
+----------------------------------------------------------
+
+For instructions on building DPDK for ARM64, LoongArch, and RISC-V, refer to :ref:`cross_compile_dpdk`.
doc/guides/getting_started_guide/install_and_build/index.rst new file +0 -0
new file mode 100644
index 0000000000..f4d8740fb6

doc/guides/getting_started_guide/install_and_build/index.rst line 3

Quoted 3 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +3 -0
@@ -0,0 +1,15 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+

2025?

Quoted 91 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +12 -0
+.. _install_and_build:
+
+Install and Build DPDK
+======================
+
+.. toctree::
+    :maxdepth: 2
+
+    
+    installing_prebuilt_packages
+    building_from_sources
+    windows_install_build
\ No newline at end of file
doc/guides/getting_started_guide/install_and_build/installing_prebuilt_packages.rst new file +54 -0
new file mode 100644
index 0000000000..3e395d65f1
@@ -0,0 +1,54 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _installing_prebuilt_packages:
+
+Installing Pre-built Packages
+=============================
+
+Pre-built packages provide a convenient way to install DPDK without the need to compile
+the source code manually. These packages are created and maintained by the DPDK
+community or OS vendors and are available for various operating systems and
+distributions.
+
+Available Distributions
+-----------------------
+
+Linux
+^^^^^
+
+Pre-built DPDK packages are available for several popular Linux distributions,
+including but not limited to:
+
+Alpine
+
+.. code-block:: bash
+
+   sudo apk add dpdk
+
+Debian and Ubuntu and derivatives
+
+.. code-block:: bash
+
+   sudo apt-get install dpdk
+
+Fedora and RedHat Enterprise Linux RHEL
+
+.. code-block:: bash
+
+   sudo dnf install dpdk
+
+openSUSE
+
+.. code-block:: bash
+
+   sudo zypper install dpdk
+
+FreeBSD
+^^^^^^^
+
+To install DPDK on FreeBSD, use the following command:
+
+.. code-block:: bash
+
+   sudo pkg install dpdk
\ No newline at end of file
doc/guides/getting_started_guide/install_and_build/windows_install_build.rst new file +10 -0
new file mode 100644
index 0000000000..ea0e131766
@@ -0,0 +1,93 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2015 Intel Corporation.
+
+.. _windows_install_build:
+
+Windows DPDK Build
+==================
+
+Before you begin the process of building DPDK on Windows, 
+make sure your system meets all the necessary requirements as outlined below.

doc/guides/getting_started_guide/install_and_build/windows_install_build.rst line 20

Quoted 10 lines
doc/guides/getting_started_guide/install_and_build/windows_install_build.rst new file +10 -0
+
+Windows System Requirements
+---------------------------
+
+Building the DPDK and its applications on Windows requires one of the following
+environments:
+
+- The Clang-LLVM C compiler and Microsoft MSVC linker.
+- The MinGW-w64 toolchain (either native or cross).
+

What is the difference of both two, as a new DPDK user which one should I select?

Quoted 39 lines
doc/guides/getting_started_guide/install_and_build/windows_install_build.rst new file +39 -0
+The Meson Build system is used to prepare the sources for compilation with the Ninja backend.
+
+Option 1: Clang-LLVM C Compiler and Microsoft MSVC Linker
+---------------------------------------------------------
+
+1. Install the Compiler: Download and install the clang compiler from the 
+`LLVM website <http://releases.llvm.org/>`_.
+
+2. Install the Linker: Download and install the Build Tools for Visual Studio from the
+`Microsoft website <https://visualstudio.microsoft.com/downloads/>`_. 
+When installing build tools, select the “Visual C++ build tools” option and make sure
+the Windows SDK is selected.
+
+Option 2: MinGW-w64 Toolchain
+-----------------------------
+
+1. On Linux (for cross-compilation): Install MinGW-w64 via a package manager. 
+Version 4.0.4 for Ubuntu 16.04 cannot be used due to a MinGW-w64 bug.
+
+2. On Windows: Obtain the latest version installer from the
+`MinGW-w64 repository <https://mingw-w64.org/doku.php>`_. 
+Any thread model (POSIX or Win32) can be chosen, DPDK does not rely on it. 
+Install to a folder without spaces in its name, like ``C:\MinGW``. 
+This path is assumed for the rest of this guide.
+
+Install the Build System
+------------------------
+
+Download and install the build system from the
+`Meson website <http://mesonbuild.com/Getting-meson.html#installing-meson-and-ninja-with-the-msi-installer>`_. 
+A good option to choose is the MSI installer for both meson and ninja together.
+Recommended version is either Meson 0.57.0 (baseline) or the latest release.
+
+Install the Backend
+-------------------
+
+If using Ninja, download and install the backend from the
+`Ninja website <https://ninja-build.org/>`_ or install along with the meson build
+system. 

doc/guides/getting_started_guide/install_and_build/windows_install_build.rst line 69

Quoted 10 lines
doc/guides/getting_started_guide/install_and_build/windows_install_build.rst new file +10 -0
+
+Once you have verified that your system meets these requirements, 
+you can proceed with the following steps to build DPDK.
+
+Build the Code
+--------------
+
+The build environment is setup to build the EAL and the helloworld example by default.
+To compile the examples, the flag -Dexamples is required.
+

What do you think to emphasis 'helloworld' & '-Dexamples', with `` or *

#6 lore raw

Re: [PATCH 2/6] Section 2: Install and Build DPDK

Quoted 48 lines · Ferruh Yigit
Quoted 31 lines · David Young
---
 .../building_from_sources.rst                 | 108 ++++++++++++++++++
 .../install_and_build/index.rst               |  15 +++
 .../installing_prebuilt_packages.rst          |  54 +++++++++
 .../windows_install_build.rst                 |  93 +++++++++++++++
 4 files changed, 270 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/install_and_build/building_from_sources.rst
 create mode 100644 doc/guides/getting_started_guide/install_and_build/index.rst
 create mode 100644 doc/guides/getting_started_guide/install_and_build/installing_prebuilt_packages.rst
 create mode 100644 doc/guides/getting_started_guide/install_and_build/windows_install_build.rst
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +13 -0
new file mode 100644
index 0000000000..e4ee8e436d
@@ -0,0 +1,108 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _building_from_sources:
+
+Building and Installing DPDK from Sources
+=========================================
+
+This chapter provides a comprehensive guide for building DPDK from sources on both
+Linux and FreeBSD platforms. It covers the necessary steps, prerequisites, 
+and considerations for different architectures and compilers.
+
+Required Tools

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst line 23

Quoted 10 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +10 -0
+--------------
+
+To build DPDK, you'll need the following tools:
+
+- A C compiler like ``gcc`` (version 5+) or ``clang`` (version 3.6+)
+- ``pkg-config`` or ``pkgconf``
+- Python 3.6 or later
+- ``meson`` (version 0.53.2+) and ``ninja``
+- ``pyelftools`` (version 0.22+)
+

Is 'libnuma' also a dependency?

When I remove it in my platform and build DPDK again, getting following in meson stage:

Quoted 8 lines

"
config/meson.build:419:4: ERROR: Problem encountered:
No NUMA library (development package) found, yet DPDK configured for multiple NUMA nodes.
Please install libnuma, or set 'max_numa_nodes' option to '1' to build without NUMA support.
"

Realistically, yes it is a dependency and we should include it here.

Quoted 82 lines
Quoted 18 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +16 -0
+Here's how to install them:
+
+Linux
+^^^^^
+
+Alpine
+
+.. code-block:: bash
+
+   sudo apk add alpine-sdk bsd-compat-headers
+   pip install meson ninja
+
+Debian and Ubuntu and derivatives
+
+.. code-block:: bash
+

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst line 49

Quoted 10 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +10 -0
+   sudo apt install build-essential
+   pip install meson ninja
+
+Fedora and RedHat Enterprise Linux RHEL
+
+.. code-block:: bash
+
+   sudo dnf groupinstall "Development Tools"
+   pip install meson ninja
+

Above are missing some of the dependencies above, just to confirm if they are installed by default?
And even if so, if we should provide explicit commands to install all, to be sure?

Quoted 46 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +46 -0
+openSUSE
+
+.. code-block:: bash
+
+   sudo zypper install -t pattern devel_basis python3-pyelftools
+   pip install meson ninja
+
+FreeBSD
+^^^^^^^
+
+FreeBSD (as root)
+
+.. code-block:: bash
+
+   pkg install meson pkgconf py38-pyelftools
+
+Note: If you're using FreeBSD, you'll also need kernel sources. Make sure they're included during the FreeBSD installation.
+
+Getting the DPDK Source
+-----------------------
+
+Download the DPDK source code from the official repository 
+``https://fast.dpdk.org/rel/``.
+
+Use ``wget`` to grab the DPDK version::
+
+        wget https://fast.dpdk.org/rel/dpdk-<version>.tar.xz
+
+Extract the downloaded archive:
+
+.. code-block:: bash
+
+   tar -xvf dpdk-<version>.tar.gz
+
+Navigate to the DPDK directory:
+
+.. code-block:: bash
+
+   cd dpdk-<version>
+
+Building DPDK
+-------------
+
+Configure the build based on your needs, hardware, and environment. 
+This might include setting specific flags or options. For example: “meson setup -Dbuildtype=debugoptimized build”. Then compile using “ninja” and install using “meson install”.
+
Quoted 9 lines

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst

Quoted 5 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +5 -0
+.. code-block:: bash
+
+   ninja -C build
+   cd build
+   sudo ninja install>

Above mentions from "meson install", here using "ninja install", should we unify it to one?

Yes, we should standardize on meson install.

Quoted 1 line

<snip for brevity>

#7 lore raw

Re: [PATCH 2/6] Section 2: Install and Build DPDK

In reply to David Young
Quoted 18 lines · David Young
---
 .../building_from_sources.rst                 | 108 ++++++++++++++++++
 .../install_and_build/index.rst               |  15 +++
 .../installing_prebuilt_packages.rst          |  54 +++++++++
 .../windows_install_build.rst                 |  93 +++++++++++++++
 4 files changed, 270 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/install_and_build/building_from_sources.rst
 create mode 100644 doc/guides/getting_started_guide/install_and_build/index.rst
 create mode 100644 doc/guides/getting_started_guide/install_and_build/installing_prebuilt_packages.rst
 create mode 100644 doc/guides/getting_started_guide/install_and_build/windows_install_build.rst
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +1 -0
new file mode 100644
index 0000000000..e4ee8e436d
@@ -0,0 +1,108 @@
+..  SPDX-License-Identifier: BSD-3-Clause

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst line 11

Quoted 10 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +10 -0
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _building_from_sources:
+
+Building and Installing DPDK from Sources
+=========================================
+
+This chapter provides a comprehensive guide for building DPDK from sources on both
+Linux and FreeBSD platforms. It covers the necessary steps, prerequisites, 
+and considerations for different architectures and compilers.

when the title of the section is general it shouldn't mention a specific OS in the content. if the content is OS specific then the parent section or the title of the section should identify to which OS it applies. in general it would be nice to convey that windows is an equally supported platform to the other operating systems.

i know it's a bit of a dance i hope you can help interpret what i'm trying to convey.

Quoted 194 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +97 -0
+
+Required Tools
+--------------
+
+To build DPDK, you'll need the following tools:
+
+- A C compiler like ``gcc`` (version 5+) or ``clang`` (version 3.6+)
+- ``pkg-config`` or ``pkgconf``
+- Python 3.6 or later
+- ``meson`` (version 0.53.2+) and ``ninja``
+- ``pyelftools`` (version 0.22+)
+
+Here's how to install them:
+
+Linux
+^^^^^
+
+Alpine
+
+.. code-block:: bash
+
+   sudo apk add alpine-sdk bsd-compat-headers
+   pip install meson ninja
+
+Debian and Ubuntu and derivatives
+
+.. code-block:: bash
+
+   sudo apt install build-essential
+   pip install meson ninja
+
+Fedora and RedHat Enterprise Linux RHEL
+
+.. code-block:: bash
+
+   sudo dnf groupinstall "Development Tools"
+   pip install meson ninja
+
+openSUSE
+
+.. code-block:: bash
+
+   sudo zypper install -t pattern devel_basis python3-pyelftools
+   pip install meson ninja
+
+FreeBSD
+^^^^^^^
+
+FreeBSD (as root)
+
+.. code-block:: bash
+
+   pkg install meson pkgconf py38-pyelftools
+
+Note: If you're using FreeBSD, you'll also need kernel sources. Make sure they're included during the FreeBSD installation.
+
+Getting the DPDK Source
+-----------------------
+
+Download the DPDK source code from the official repository 
+``https://fast.dpdk.org/rel/``.
+
+Use ``wget`` to grab the DPDK version::
+
+        wget https://fast.dpdk.org/rel/dpdk-<version>.tar.xz
+
+Extract the downloaded archive:
+
+.. code-block:: bash
+
+   tar -xvf dpdk-<version>.tar.gz
+
+Navigate to the DPDK directory:
+
+.. code-block:: bash
+
+   cd dpdk-<version>
+
+Building DPDK
+-------------
+
+Configure the build based on your needs, hardware, and environment. 
+This might include setting specific flags or options. For example: “meson setup -Dbuildtype=debugoptimized build”. Then compile using “ninja” and install using “meson install”.
+
+.. code-block:: bash
+
+   ninja -C build
+   cd build
+   sudo ninja install
+   ldconfig
+
+For detailed information on Meson build configuration options specific to DPDK, see :ref:`DPDK Meson Build Configuration Options <dpdk_meson_build_options>`.
+
+Cross-Compilation Instructions for Different Architectures
+----------------------------------------------------------
+
+For instructions on building DPDK for ARM64, LoongArch, and RISC-V, refer to :ref:`cross_compile_dpdk`.
doc/guides/getting_started_guide/install_and_build/index.rst new file +15 -0
new file mode 100644
index 0000000000..f4d8740fb6
@@ -0,0 +1,15 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _install_and_build:
+
+Install and Build DPDK
+======================
+
+.. toctree::
+    :maxdepth: 2
+
+    
+    installing_prebuilt_packages
+    building_from_sources
+    windows_install_build
\ No newline at end of file
doc/guides/getting_started_guide/install_and_build/installing_prebuilt_packages.rst new file +54 -0
new file mode 100644
index 0000000000..3e395d65f1
@@ -0,0 +1,54 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _installing_prebuilt_packages:
+
+Installing Pre-built Packages
+=============================
+
+Pre-built packages provide a convenient way to install DPDK without the need to compile
+the source code manually. These packages are created and maintained by the DPDK
+community or OS vendors and are available for various operating systems and
+distributions.
+
+Available Distributions
+-----------------------
+
+Linux
+^^^^^
+
+Pre-built DPDK packages are available for several popular Linux distributions,
+including but not limited to:
+
+Alpine
+
+.. code-block:: bash
+
+   sudo apk add dpdk
+
+Debian and Ubuntu and derivatives
+
+.. code-block:: bash
+
+   sudo apt-get install dpdk
+
+Fedora and RedHat Enterprise Linux RHEL
+
+.. code-block:: bash
+
+   sudo dnf install dpdk
+
+openSUSE
+
+.. code-block:: bash
+
+   sudo zypper install dpdk
+
+FreeBSD
+^^^^^^^
+
+To install DPDK on FreeBSD, use the following command:
+
+.. code-block:: bash
+
+   sudo pkg install dpdk
\ No newline at end of file
doc/guides/getting_started_guide/install_and_build/windows_install_build.rst new file +8 -0
new file mode 100644
index 0000000000..ea0e131766
@@ -0,0 +1,93 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2015 Intel Corporation.
+
+.. _windows_install_build:
+
+Windows DPDK Build
+==================
+

doc/guides/getting_started_guide/install_and_build/windows_install_build.rst line 18

Quoted 10 lines
doc/guides/getting_started_guide/install_and_build/windows_install_build.rst new file +10 -0
+Before you begin the process of building DPDK on Windows, 
+make sure your system meets all the necessary requirements as outlined below.
+
+Windows System Requirements
+---------------------------
+
+Building the DPDK and its applications on Windows requires one of the following
+environments:
+
+- The Clang-LLVM C compiler and Microsoft MSVC linker.

would it be overly objectionable to state specific LLVM >= 16.0.x as required?

Quoted 24 lines
doc/guides/getting_started_guide/install_and_build/windows_install_build.rst new file +24 -0
+- The MinGW-w64 toolchain (either native or cross).
+
+The Meson Build system is used to prepare the sources for compilation with the Ninja backend.
+
+Option 1: Clang-LLVM C Compiler and Microsoft MSVC Linker
+---------------------------------------------------------
+
+1. Install the Compiler: Download and install the clang compiler from the 
+`LLVM website <http://releases.llvm.org/>`_.
+
+2. Install the Linker: Download and install the Build Tools for Visual Studio from the
+`Microsoft website <https://visualstudio.microsoft.com/downloads/>`_. 
+When installing build tools, select the “Visual C++ build tools” option and make sure
+the Windows SDK is selected.
+
+Option 2: MinGW-w64 Toolchain
+-----------------------------
+
+1. On Linux (for cross-compilation): Install MinGW-w64 via a package manager. 
+Version 4.0.4 for Ubuntu 16.04 cannot be used due to a MinGW-w64 bug.
+
+2. On Windows: Obtain the latest version installer from the
+`MinGW-w64 repository <https://mingw-w64.org/doku.php>`_. 
+Any thread model (POSIX or Win32) can be chosen, DPDK does not rely on it. 

doc/guides/getting_started_guide/install_and_build/windows_install_build.rst line 52

Quoted 10 lines
doc/guides/getting_started_guide/install_and_build/windows_install_build.rst new file +10 -0
+Install to a folder without spaces in its name, like ``C:\MinGW``. 
+This path is assumed for the rest of this guide.
+
+Install the Build System
+------------------------
+
+Download and install the build system from the
+`Meson website <http://mesonbuild.com/Getting-meson.html#installing-meson-and-ninja-with-the-msi-installer>`_. 
+A good option to choose is the MSI installer for both meson and ninja together.
+Recommended version is either Meson 0.57.0 (baseline) or the latest release.

s/Recommended/Required/ is 0.57.0 i do not believe their latest release works?

doc/guides/getting_started_guide/install_and_build/windows_install_build.rst line 59

Quoted 7 lines
doc/guides/getting_started_guide/install_and_build/windows_install_build.rst new file +7 -0
+
+Install the Backend
+-------------------
+
+If using Ninja, download and install the backend from the
+`Ninja website <https://ninja-build.org/>`_ or install along with the meson build
+system. 

i'm not sure we need to mention the installation of the ninja backend since you acquire it along with meson 0.57.0? anyone call me wrong on this or does windows use any other backend that we are aware? if not i think we can delete the 'install the backend' section entirely.

Quoted 15 lines
doc/guides/getting_started_guide/install_and_build/windows_install_build.rst new file +15 -0
+
+Once you have verified that your system meets these requirements, 
+you can proceed with the following steps to build DPDK.
+
+Build the Code
+--------------
+
+The build environment is setup to build the EAL and the helloworld example by default.
+To compile the examples, the flag -Dexamples is required.
+
+**Option 1. Native Build on Windows**
+
+When using Clang-LLVM, specifying the compiler might be required to complete the meson
+command::
+

doc/guides/getting_started_guide/install_and_build/windows_install_build.rst line 84

Quoted 10 lines
doc/guides/getting_started_guide/install_and_build/windows_install_build.rst new file +10 -0
+        set CC=clang
+
+When using MinGW-w64, it is sufficient to have toolchain executables in PATH::
+
+        set PATH=C:\MinGW\mingw64\bin;%PATH%
+
+To compile the examples::
+
+        cd C:\Users\me\dpdk
+        meson -Dexamples=helloworld build

meson setup -Dexamples=helloworld build

doc/guides/getting_started_guide/install_and_build/windows_install_build.rst line 85

Quoted 1 line
doc/guides/getting_started_guide/install_and_build/windows_install_build.rst new file +1 -0
+        ninja -C build

meson compile -C build

Quoted 11 lines
doc/guides/getting_started_guide/install_and_build/windows_install_build.rst new file +8 -0
+
+**Option 2. Cross-Compile with MinGW-w64**
+
+The cross-file option must be specified for Meson. 
+Depending on the distribution, paths in this file may need adjustments::
+
+        meson --cross-file config/x86/cross-mingw -Dexamples=helloworld build
+        ninja -C build
\ No newline at end of file
Signature · 1 line
2.41.0.windows.1
author
#8 lore raw

Re: [PATCH 2/6] Section 2: Install and Build DPDK

Tyler, can you provide an example of the OS specific section/title you're thinking would make sense to use?

Can you confirm the following?

1. The Clang-LLVM C compiler (version >= 16.0.x)
2. Meson Build system (Required version: 0.57.0)
3. Updated commands:

# Previous Command
meson -Dexamples=helloworld build
# Updated Command
meson setup -Dexamples=helloworld build

# Previous Command
ninja -C build
# Updated Command
meson compile -C build

4. Since Ninja is bundled with Meson 0.57.0, a separate section for its installation may not be necessary. Is this correct?

Thanks!
David Young
Professional Copywriter/Technical Writer
Young Copy
+1 (678) 500-9550
https://www.youngcopy.com

Quoted 386 lines · Tyler Retzlaff
Quoted 7 lines · David Young
---
 .../building_from_sources.rst                 | 108 ++++++++++++++++++
 .../install_and_build/index.rst               |  15 +++
 .../installing_prebuilt_packages.rst          |  54 +++++++++
 .../windows_install_build.rst                 |  93 +++++++++++++++
 4 files changed, 270 insertions(+)
 create mode 100644

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst

Quoted 1 line
 create mode 100644

doc/guides/getting_started_guide/install_and_build/index.rst

Quoted 1 line
 create mode 100644

doc/guides/getting_started_guide/install_and_build/installing_prebuilt_packages.rst

Quoted 1 line
 create mode 100644

doc/guides/getting_started_guide/install_and_build/windows_install_build.rst

Quoted 2 lines

diff --git

a/doc/guides/getting_started_guide/install_and_build/building_from_sources.rst b/doc/guides/getting_started_guide/install_and_build/building_from_sources.rst

Quoted 4 lines

new file mode 100644
index 0000000000..e4ee8e436d
--- /dev/null
+++

b/doc/guides/getting_started_guide/install_and_build/building_from_sources.rst

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst line 9

Quoted 10 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +9 -0
@@ -0,0 +1,108 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _building_from_sources:
+
+Building and Installing DPDK from Sources
+=========================================
+
+This chapter provides a comprehensive guide for building DPDK from

sources on both

Review line 10

Quoted 1 line
(quoted diff) +1 -0
+Linux and FreeBSD platforms. It covers the necessary steps,

prerequisites,

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst line 11

Quoted 1 line
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +1 -0
+and considerations for different architectures and compilers.

when the title of the section is general it shouldn't mention a specific OS in the content. if the content is OS specific then the parent section or the title of the section should identify to which OS it applies. in general it would be nice to convey that windows is an equally supported platform to the other operating systems.

i know it's a bit of a dance i hope you can help interpret what i'm trying to convey.

Quoted 45 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +45 -0
+
+Required Tools
+--------------
+
+To build DPDK, you'll need the following tools:
+
+- A C compiler like ``gcc`` (version 5+) or ``clang`` (version 3.6+)
+- ``pkg-config`` or ``pkgconf``
+- Python 3.6 or later
+- ``meson`` (version 0.53.2+) and ``ninja``
+- ``pyelftools`` (version 0.22+)
+
+Here's how to install them:
+
+Linux
+^^^^^
+
+Alpine
+
+.. code-block:: bash
+
+   sudo apk add alpine-sdk bsd-compat-headers
+   pip install meson ninja
+
+Debian and Ubuntu and derivatives
+
+.. code-block:: bash
+
+   sudo apt install build-essential
+   pip install meson ninja
+
+Fedora and RedHat Enterprise Linux RHEL
+
+.. code-block:: bash
+
+   sudo dnf groupinstall "Development Tools"
+   pip install meson ninja
+
+openSUSE
+
+.. code-block:: bash
+
+   sudo zypper install -t pattern devel_basis python3-pyelftools
+   pip install meson ninja
+

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst

Quoted 10 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +10 -0
+FreeBSD
+^^^^^^^
+
+FreeBSD (as root)
+
+.. code-block:: bash
+
+   pkg install meson pkgconf py38-pyelftools
+
+Note: If you're using FreeBSD, you'll also need kernel sources. Make

sure they're included during the FreeBSD installation.

Quoted 18 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +18 -0
+
+Getting the DPDK Source
+-----------------------
+
+Download the DPDK source code from the official repository
+``https://fast.dpdk.org/rel/`` <https://fast.dpdk.org/rel/>.
+
+Use ``wget`` to grab the DPDK version::
+
+        wget https://fast.dpdk.org/rel/dpdk-<version>.tar.xz
+
+Extract the downloaded archive:
+
+.. code-block:: bash
+
+   tar -xvf dpdk-<version>.tar.gz
+
+Navigate to the DPDK directory:

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst

Quoted 10 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +10 -0
+
+.. code-block:: bash
+
+   cd dpdk-<version>
+
+Building DPDK
+-------------
+
+Configure the build based on your needs, hardware, and environment.
+This might include setting specific flags or options. For example:

“meson setup -Dbuildtype=debugoptimized build”. Then compile using “ninja” and install using “meson install”.

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst

Quoted 9 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +9 -0
+
+.. code-block:: bash
+
+   ninja -C build
+   cd build
+   sudo ninja install
+   ldconfig
+
+For detailed information on Meson build configuration options specific

to DPDK, see :ref:DPDK Meson Build Configuration Options <dpdk_meson_build_options>.

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst

Quoted 5 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +5 -0
+
+Cross-Compilation Instructions for Different Architectures
+----------------------------------------------------------
+
+For instructions on building DPDK for ARM64, LoongArch, and RISC-V,

refer to :ref:cross_compile_dpdk.

Quoted 1 line

diff --git

a/doc/guides/getting_started_guide/install_and_build/index.rst b/doc/guides/getting_started_guide/install_and_build/index.rst

Quoted 21 lines

new file mode 100644
index 0000000000..f4d8740fb6

doc/guides/getting_started_guide/install_and_build/index.rst new file +15 -0
@@ -0,0 +1,15 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _install_and_build:
+
+Install and Build DPDK
+======================
+
+.. toctree::
+    :maxdepth: 2
+
+
+    installing_prebuilt_packages
+    building_from_sources
+    windows_install_build
\ No newline at end of file
Quoted 1 line

diff --git

a/doc/guides/getting_started_guide/install_and_build/installing_prebuilt_packages.rst b/doc/guides/getting_started_guide/install_and_build/installing_prebuilt_packages.rst

Quoted 4 lines

new file mode 100644
index 0000000000..3e395d65f1
--- /dev/null
+++

b/doc/guides/getting_started_guide/install_and_build/installing_prebuilt_packages.rst

doc/guides/getting_started_guide/install_and_build/index.rst line 9

Quoted 10 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +9 -0
@@ -0,0 +1,54 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _installing_prebuilt_packages:
+
+Installing Pre-built Packages
+=============================
+
+Pre-built packages provide a convenient way to install DPDK without the

need to compile

doc/guides/getting_started_guide/install_and_build/index.rst line 10

Quoted 1 line
doc/guides/getting_started_guide/install_and_build/index.rst new file +1 -0
+the source code manually. These packages are created and maintained by

the DPDK

doc/guides/getting_started_guide/install_and_build/index.rst line 11

Quoted 1 line
doc/guides/getting_started_guide/install_and_build/index.rst new file +1 -0
+community or OS vendors and are available for various operating systems

and

doc/guides/getting_started_guide/install_and_build/index.rst line 20

Quoted 9 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +9 -0
+distributions.
+
+Available Distributions
+-----------------------
+
+Linux
+^^^^^
+
+Pre-built DPDK packages are available for several popular Linux

distributions,

Quoted 35 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +34 -0
+including but not limited to:
+
+Alpine
+
+.. code-block:: bash
+
+   sudo apk add dpdk
+
+Debian and Ubuntu and derivatives
+
+.. code-block:: bash
+
+   sudo apt-get install dpdk
+
+Fedora and RedHat Enterprise Linux RHEL
+
+.. code-block:: bash
+
+   sudo dnf install dpdk
+
+openSUSE
+
+.. code-block:: bash
+
+   sudo zypper install dpdk
+
+FreeBSD
+^^^^^^^
+
+To install DPDK on FreeBSD, use the following command:
+
+.. code-block:: bash
+
+   sudo pkg install dpdk
\ No newline at end of file
Quoted 1 line

diff --git

a/doc/guides/getting_started_guide/install_and_build/windows_install_build.rst b/doc/guides/getting_started_guide/install_and_build/windows_install_build.rst

Quoted 4 lines

new file mode 100644
index 0000000000..ea0e131766
--- /dev/null
+++

b/doc/guides/getting_started_guide/install_and_build/windows_install_build.rst

doc/guides/getting_started_guide/install_and_build/index.rst line 10

Quoted 11 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +10 -0
@@ -0,0 +1,93 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2015 Intel Corporation.
+
+.. _windows_install_build:
+
+Windows DPDK Build
+==================
+
+Before you begin the process of building DPDK on Windows,
+make sure your system meets all the necessary requirements as outlined

below.

doc/guides/getting_started_guide/install_and_build/index.rst line 15

Quoted 5 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +5 -0
+
+Windows System Requirements
+---------------------------
+
+Building the DPDK and its applications on Windows requires one of the

following

doc/guides/getting_started_guide/install_and_build/index.rst line 18

Quoted 3 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +3 -0
+environments:
+
+- The Clang-LLVM C compiler and Microsoft MSVC linker.

would it be overly objectionable to state specific LLVM >= 16.0.x as required?

doc/guides/getting_started_guide/install_and_build/index.rst line 21

Quoted 3 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +3 -0
+- The MinGW-w64 toolchain (either native or cross).
+
+The Meson Build system is used to prepare the sources for compilation

with the Ninja backend.

doc/guides/getting_started_guide/install_and_build/index.rst line 26

Quoted 5 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +5 -0
+
+Option 1: Clang-LLVM C Compiler and Microsoft MSVC Linker
+---------------------------------------------------------
+
+1. Install the Compiler: Download and install the clang compiler from

the

doc/guides/getting_started_guide/install_and_build/index.rst line 29

Quoted 3 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +3 -0
+`LLVM website <http://releases.llvm.org/>`_.
+
+2. Install the Linker: Download and install the Build Tools for Visual

Studio from the

doc/guides/getting_started_guide/install_and_build/index.rst line 31

Quoted 2 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +2 -0
+`Microsoft website <https://visualstudio.microsoft.com/downloads/>`_.
+When installing build tools, select the “Visual C++ build tools” option

and make sure

doc/guides/getting_started_guide/install_and_build/index.rst line 37

Quoted 6 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +6 -0
+the Windows SDK is selected.
+
+Option 2: MinGW-w64 Toolchain
+-----------------------------
+
+1. On Linux (for cross-compilation): Install MinGW-w64 via a package

manager.

doc/guides/getting_started_guide/install_and_build/index.rst line 42

Quoted 5 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +5 -0
+Version 4.0.4 for Ubuntu 16.04 cannot be used due to a MinGW-w64 bug.
+
+2. On Windows: Obtain the latest version installer from the
+`MinGW-w64 repository <https://mingw-w64.org/doku.php>`_.
+Any thread model (POSIX or Win32) can be chosen, DPDK does not rely on

it.

doc/guides/getting_started_guide/install_and_build/index.rst line 50

Quoted 8 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +8 -0
+Install to a folder without spaces in its name, like ``C:\MinGW``.
+This path is assumed for the rest of this guide.
+
+Install the Build System
+------------------------
+
+Download and install the build system from the
+`Meson website <

http://mesonbuild.com/Getting-meson.html#installing-meson-and-ninja-with-the-msi-installer>`_.

doc/guides/getting_started_guide/install_and_build/index.rst line 51

Quoted 1 line
doc/guides/getting_started_guide/install_and_build/index.rst new file +1 -0
+A good option to choose is the MSI installer for both meson and ninja

together.

doc/guides/getting_started_guide/install_and_build/index.rst line 52

Quoted 1 line
doc/guides/getting_started_guide/install_and_build/index.rst new file +1 -0
+Recommended version is either Meson 0.57.0 (baseline) or the latest

release.

s/Recommended/Required/ is 0.57.0 i do not believe their latest release works?

doc/guides/getting_started_guide/install_and_build/index.rst line 58

Quoted 6 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +6 -0
+
+Install the Backend
+-------------------
+
+If using Ninja, download and install the backend from the
+`Ninja website <https://ninja-build.org/>`_ or install along with the

meson build

doc/guides/getting_started_guide/install_and_build/index.rst line 59

Quoted 1 line
doc/guides/getting_started_guide/install_and_build/index.rst new file +1 -0
+system.

i'm not sure we need to mention the installation of the ninja backend since you acquire it along with meson 0.57.0? anyone call me wrong on this or does windows use any other backend that we are aware? if not i think we can delete the 'install the backend' section entirely.

doc/guides/getting_started_guide/install_and_build/index.rst line 67

Quoted 8 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +8 -0
+
+Once you have verified that your system meets these requirements,
+you can proceed with the following steps to build DPDK.
+
+Build the Code
+--------------
+
+The build environment is setup to build the EAL and the helloworld

example by default.

doc/guides/getting_started_guide/install_and_build/index.rst line 72

Quoted 5 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +5 -0
+To compile the examples, the flag -Dexamples is required.
+
+**Option 1. Native Build on Windows**
+
+When using Clang-LLVM, specifying the compiler might be required to

complete the meson

doc/guides/getting_started_guide/install_and_build/index.rst line 77

Quoted 5 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +5 -0
+command::
+
+        set CC=clang
+
+When using MinGW-w64, it is sufficient to have toolchain executables in

PATH::

doc/guides/getting_started_guide/install_and_build/index.rst line 84

Quoted 7 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +7 -0
+
+        set PATH=C:\MinGW\mingw64\bin;%PATH%
+
+To compile the examples::
+
+        cd C:\Users\me\dpdk
+        meson -Dexamples=helloworld build

meson setup -Dexamples=helloworld build

doc/guides/getting_started_guide/install_and_build/index.rst line 85

Quoted 1 line
doc/guides/getting_started_guide/install_and_build/index.rst new file +1 -0
+        ninja -C build

meson compile -C build

doc/guides/getting_started_guide/install_and_build/index.rst line 92

Quoted 7 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +7 -0
+
+**Option 2. Cross-Compile with MinGW-w64**
+
+The cross-file option must be specified for Meson.
+Depending on the distribution, paths in this file may need adjustments::
+
+        meson --cross-file config/x86/cross-mingw -Dexamples=helloworld

build

Quoted 4 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +1 -1
+        ninja -C build
\ No newline at end of file
--

2.41.0.windows.1

#9 lore raw

Re: [PATCH 2/6] Section 2: Install and Build DPDK

Quoted 2 lines · Dave Young

Tyler, can you provide an example of the OS specific section/title you're thinking would make sense to use?

I think what is below is okay, but it probably just needs a Windows section?

Right now there is, so just adding Windows into the list would be enough? If I didn't understand the question ask again :)

Required Tools
--------------

Linux

Tools applicable to all distributions, maybe?

Distribution 1

Tools applicable to specific distribution 1.

Distribution 2

Tools applicable to specific distribution 2.

FreeBSD

Tools applicable for FreeBSD

.. Maybe there are per-release or per toolchain speicic things, maybe not?

Windows

Tools applicable to Windows

.. Probably per-toolchain specific things.

I might get a brick thrown at me but I might also suggest sorting by OS name? I know Linux is important, regardless Windows ends up last either way so it's just a suggestion.

Hope this is what you were asking.

Quoted 6 lines

Can you confirm the following?

1. The Clang-LLVM C compiler (version >= 16.0.x)
2. Meson Build system (Required version: 0.57.0)
3. Updated commands:

Yes, this is what I use today. I wonder if we can provide links? But also MinGW is also used as an alternative to LLVM.

Quoted 5 lines

# Previous Command
meson -Dexamples=helloworld build
# Updated Command
meson setup -Dexamples=helloworld build

Yes, updated command is what I use currently.

Quoted 5 lines

# Previous Command
ninja -C build
# Updated Command
meson compile -C build

Yes, updated command is what I use currently.

Quoted 3 lines

4. Since Ninja is bundled with Meson 0.57.0, a separate section for its installation may not be necessary. Is this correct?

Yes, I believe this is the case. I have never had to separately install ninja or another backend.

Once all of your changes have settled I plan to add some additional detail related to MSVC as well but for the moment it is *not* supported usefully so we don't need to mention it yet.

Quoted 398 lines

Thanks!
David Young
Professional Copywriter/Technical Writer
Young Copy
+1 (678) 500-9550
https://www.youngcopy.com

Quoted 386 lines · Tyler Retzlaff
Quoted 7 lines · David Young
---
 .../building_from_sources.rst                 | 108 ++++++++++++++++++
 .../install_and_build/index.rst               |  15 +++
 .../installing_prebuilt_packages.rst          |  54 +++++++++
 .../windows_install_build.rst                 |  93 +++++++++++++++
 4 files changed, 270 insertions(+)
 create mode 100644

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst

Quoted 1 line
 create mode 100644

doc/guides/getting_started_guide/install_and_build/index.rst

Quoted 1 line
 create mode 100644

doc/guides/getting_started_guide/install_and_build/installing_prebuilt_packages.rst

Quoted 1 line
 create mode 100644

doc/guides/getting_started_guide/install_and_build/windows_install_build.rst

Quoted 2 lines

diff --git

a/doc/guides/getting_started_guide/install_and_build/building_from_sources.rst b/doc/guides/getting_started_guide/install_and_build/building_from_sources.rst

Quoted 4 lines

new file mode 100644
index 0000000000..e4ee8e436d
--- /dev/null
+++

b/doc/guides/getting_started_guide/install_and_build/building_from_sources.rst

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst line 9

Quoted 10 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +9 -0
@@ -0,0 +1,108 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _building_from_sources:
+
+Building and Installing DPDK from Sources
+=========================================
+
+This chapter provides a comprehensive guide for building DPDK from

sources on both

Review line 10

Quoted 1 line
(quoted diff) +1 -0
+Linux and FreeBSD platforms. It covers the necessary steps,

prerequisites,

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst line 11

Quoted 1 line
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +1 -0
+and considerations for different architectures and compilers.

when the title of the section is general it shouldn't mention a specific OS in the content. if the content is OS specific then the parent section or the title of the section should identify to which OS it applies. in general it would be nice to convey that windows is an equally supported platform to the other operating systems.

i know it's a bit of a dance i hope you can help interpret what i'm trying to convey.

Quoted 45 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +45 -0
+
+Required Tools
+--------------
+
+To build DPDK, you'll need the following tools:
+
+- A C compiler like ``gcc`` (version 5+) or ``clang`` (version 3.6+)
+- ``pkg-config`` or ``pkgconf``
+- Python 3.6 or later
+- ``meson`` (version 0.53.2+) and ``ninja``
+- ``pyelftools`` (version 0.22+)
+
+Here's how to install them:
+
+Linux
+^^^^^
+
+Alpine
+
+.. code-block:: bash
+
+   sudo apk add alpine-sdk bsd-compat-headers
+   pip install meson ninja
+
+Debian and Ubuntu and derivatives
+
+.. code-block:: bash
+
+   sudo apt install build-essential
+   pip install meson ninja
+
+Fedora and RedHat Enterprise Linux RHEL
+
+.. code-block:: bash
+
+   sudo dnf groupinstall "Development Tools"
+   pip install meson ninja
+
+openSUSE
+
+.. code-block:: bash
+
+   sudo zypper install -t pattern devel_basis python3-pyelftools
+   pip install meson ninja
+

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst

Quoted 10 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +10 -0
+FreeBSD
+^^^^^^^
+
+FreeBSD (as root)
+
+.. code-block:: bash
+
+   pkg install meson pkgconf py38-pyelftools
+
+Note: If you're using FreeBSD, you'll also need kernel sources. Make

sure they're included during the FreeBSD installation.

Quoted 18 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +18 -0
+
+Getting the DPDK Source
+-----------------------
+
+Download the DPDK source code from the official repository
+``https://fast.dpdk.org/rel/`` <https://fast.dpdk.org/rel/>.
+
+Use ``wget`` to grab the DPDK version::
+
+        wget https://fast.dpdk.org/rel/dpdk-<version>.tar.xz
+
+Extract the downloaded archive:
+
+.. code-block:: bash
+
+   tar -xvf dpdk-<version>.tar.gz
+
+Navigate to the DPDK directory:

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst

Quoted 10 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +10 -0
+
+.. code-block:: bash
+
+   cd dpdk-<version>
+
+Building DPDK
+-------------
+
+Configure the build based on your needs, hardware, and environment.
+This might include setting specific flags or options. For example:

“meson setup -Dbuildtype=debugoptimized build”. Then compile using “ninja” and install using “meson install”.

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst

Quoted 9 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +9 -0
+
+.. code-block:: bash
+
+   ninja -C build
+   cd build
+   sudo ninja install
+   ldconfig
+
+For detailed information on Meson build configuration options specific

to DPDK, see :ref:DPDK Meson Build Configuration Options <dpdk_meson_build_options>.

doc/guides/getting_started_guide/install_and_build/building_from_sources.rst

Quoted 5 lines
doc/guides/getting_started_guide/install_and_build/building_from_sources.rst new file +5 -0
+
+Cross-Compilation Instructions for Different Architectures
+----------------------------------------------------------
+
+For instructions on building DPDK for ARM64, LoongArch, and RISC-V,

refer to :ref:cross_compile_dpdk.

Quoted 1 line

diff --git

a/doc/guides/getting_started_guide/install_and_build/index.rst b/doc/guides/getting_started_guide/install_and_build/index.rst

Quoted 21 lines

new file mode 100644
index 0000000000..f4d8740fb6

doc/guides/getting_started_guide/install_and_build/index.rst new file +15 -0
@@ -0,0 +1,15 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _install_and_build:
+
+Install and Build DPDK
+======================
+
+.. toctree::
+    :maxdepth: 2
+
+
+    installing_prebuilt_packages
+    building_from_sources
+    windows_install_build
\ No newline at end of file
Quoted 1 line

diff --git

a/doc/guides/getting_started_guide/install_and_build/installing_prebuilt_packages.rst b/doc/guides/getting_started_guide/install_and_build/installing_prebuilt_packages.rst

Quoted 4 lines

new file mode 100644
index 0000000000..3e395d65f1
--- /dev/null
+++

b/doc/guides/getting_started_guide/install_and_build/installing_prebuilt_packages.rst

doc/guides/getting_started_guide/install_and_build/index.rst line 9

Quoted 10 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +9 -0
@@ -0,0 +1,54 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _installing_prebuilt_packages:
+
+Installing Pre-built Packages
+=============================
+
+Pre-built packages provide a convenient way to install DPDK without the

need to compile

doc/guides/getting_started_guide/install_and_build/index.rst line 10

Quoted 1 line
doc/guides/getting_started_guide/install_and_build/index.rst new file +1 -0
+the source code manually. These packages are created and maintained by

the DPDK

doc/guides/getting_started_guide/install_and_build/index.rst line 11

Quoted 1 line
doc/guides/getting_started_guide/install_and_build/index.rst new file +1 -0
+community or OS vendors and are available for various operating systems

and

doc/guides/getting_started_guide/install_and_build/index.rst line 20

Quoted 9 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +9 -0
+distributions.
+
+Available Distributions
+-----------------------
+
+Linux
+^^^^^
+
+Pre-built DPDK packages are available for several popular Linux

distributions,

Quoted 35 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +34 -0
+including but not limited to:
+
+Alpine
+
+.. code-block:: bash
+
+   sudo apk add dpdk
+
+Debian and Ubuntu and derivatives
+
+.. code-block:: bash
+
+   sudo apt-get install dpdk
+
+Fedora and RedHat Enterprise Linux RHEL
+
+.. code-block:: bash
+
+   sudo dnf install dpdk
+
+openSUSE
+
+.. code-block:: bash
+
+   sudo zypper install dpdk
+
+FreeBSD
+^^^^^^^
+
+To install DPDK on FreeBSD, use the following command:
+
+.. code-block:: bash
+
+   sudo pkg install dpdk
\ No newline at end of file
Quoted 1 line

diff --git

a/doc/guides/getting_started_guide/install_and_build/windows_install_build.rst b/doc/guides/getting_started_guide/install_and_build/windows_install_build.rst

Quoted 4 lines

new file mode 100644
index 0000000000..ea0e131766
--- /dev/null
+++

b/doc/guides/getting_started_guide/install_and_build/windows_install_build.rst

doc/guides/getting_started_guide/install_and_build/index.rst line 10

Quoted 11 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +10 -0
@@ -0,0 +1,93 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2015 Intel Corporation.
+
+.. _windows_install_build:
+
+Windows DPDK Build
+==================
+
+Before you begin the process of building DPDK on Windows,
+make sure your system meets all the necessary requirements as outlined

below.

doc/guides/getting_started_guide/install_and_build/index.rst line 15

Quoted 5 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +5 -0
+
+Windows System Requirements
+---------------------------
+
+Building the DPDK and its applications on Windows requires one of the

following

doc/guides/getting_started_guide/install_and_build/index.rst line 18

Quoted 3 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +3 -0
+environments:
+
+- The Clang-LLVM C compiler and Microsoft MSVC linker.

would it be overly objectionable to state specific LLVM >= 16.0.x as required?

doc/guides/getting_started_guide/install_and_build/index.rst line 21

Quoted 3 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +3 -0
+- The MinGW-w64 toolchain (either native or cross).
+
+The Meson Build system is used to prepare the sources for compilation

with the Ninja backend.

doc/guides/getting_started_guide/install_and_build/index.rst line 26

Quoted 5 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +5 -0
+
+Option 1: Clang-LLVM C Compiler and Microsoft MSVC Linker
+---------------------------------------------------------
+
+1. Install the Compiler: Download and install the clang compiler from

the

doc/guides/getting_started_guide/install_and_build/index.rst line 29

Quoted 3 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +3 -0
+`LLVM website <http://releases.llvm.org/>`_.
+
+2. Install the Linker: Download and install the Build Tools for Visual

Studio from the

doc/guides/getting_started_guide/install_and_build/index.rst line 31

Quoted 2 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +2 -0
+`Microsoft website <https://visualstudio.microsoft.com/downloads/>`_.
+When installing build tools, select the “Visual C++ build tools” option

and make sure

doc/guides/getting_started_guide/install_and_build/index.rst line 37

Quoted 6 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +6 -0
+the Windows SDK is selected.
+
+Option 2: MinGW-w64 Toolchain
+-----------------------------
+
+1. On Linux (for cross-compilation): Install MinGW-w64 via a package

manager.

doc/guides/getting_started_guide/install_and_build/index.rst line 42

Quoted 5 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +5 -0
+Version 4.0.4 for Ubuntu 16.04 cannot be used due to a MinGW-w64 bug.
+
+2. On Windows: Obtain the latest version installer from the
+`MinGW-w64 repository <https://mingw-w64.org/doku.php>`_.
+Any thread model (POSIX or Win32) can be chosen, DPDK does not rely on

it.

doc/guides/getting_started_guide/install_and_build/index.rst line 50

Quoted 8 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +8 -0
+Install to a folder without spaces in its name, like ``C:\MinGW``.
+This path is assumed for the rest of this guide.
+
+Install the Build System
+------------------------
+
+Download and install the build system from the
+`Meson website <

http://mesonbuild.com/Getting-meson.html#installing-meson-and-ninja-with-the-msi-installer>`_.

doc/guides/getting_started_guide/install_and_build/index.rst line 51

Quoted 1 line
doc/guides/getting_started_guide/install_and_build/index.rst new file +1 -0
+A good option to choose is the MSI installer for both meson and ninja

together.

doc/guides/getting_started_guide/install_and_build/index.rst line 52

Quoted 1 line
doc/guides/getting_started_guide/install_and_build/index.rst new file +1 -0
+Recommended version is either Meson 0.57.0 (baseline) or the latest

release.

s/Recommended/Required/ is 0.57.0 i do not believe their latest release works?

doc/guides/getting_started_guide/install_and_build/index.rst line 58

Quoted 6 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +6 -0
+
+Install the Backend
+-------------------
+
+If using Ninja, download and install the backend from the
+`Ninja website <https://ninja-build.org/>`_ or install along with the

meson build

doc/guides/getting_started_guide/install_and_build/index.rst line 59

Quoted 1 line
doc/guides/getting_started_guide/install_and_build/index.rst new file +1 -0
+system.

i'm not sure we need to mention the installation of the ninja backend since you acquire it along with meson 0.57.0? anyone call me wrong on this or does windows use any other backend that we are aware? if not i think we can delete the 'install the backend' section entirely.

doc/guides/getting_started_guide/install_and_build/index.rst line 67

Quoted 8 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +8 -0
+
+Once you have verified that your system meets these requirements,
+you can proceed with the following steps to build DPDK.
+
+Build the Code
+--------------
+
+The build environment is setup to build the EAL and the helloworld

example by default.

doc/guides/getting_started_guide/install_and_build/index.rst line 72

Quoted 5 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +5 -0
+To compile the examples, the flag -Dexamples is required.
+
+**Option 1. Native Build on Windows**
+
+When using Clang-LLVM, specifying the compiler might be required to

complete the meson

doc/guides/getting_started_guide/install_and_build/index.rst line 77

Quoted 5 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +5 -0
+command::
+
+        set CC=clang
+
+When using MinGW-w64, it is sufficient to have toolchain executables in

PATH::

doc/guides/getting_started_guide/install_and_build/index.rst line 84

Quoted 7 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +7 -0
+
+        set PATH=C:\MinGW\mingw64\bin;%PATH%
+
+To compile the examples::
+
+        cd C:\Users\me\dpdk
+        meson -Dexamples=helloworld build

meson setup -Dexamples=helloworld build

doc/guides/getting_started_guide/install_and_build/index.rst line 85

Quoted 1 line
doc/guides/getting_started_guide/install_and_build/index.rst new file +1 -0
+        ninja -C build

meson compile -C build

doc/guides/getting_started_guide/install_and_build/index.rst line 92

Quoted 7 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +7 -0
+
+**Option 2. Cross-Compile with MinGW-w64**
+
+The cross-file option must be specified for Meson.
+Depending on the distribution, paths in this file may need adjustments::
+
+        meson --cross-file config/x86/cross-mingw -Dexamples=helloworld

build

Quoted 4 lines
doc/guides/getting_started_guide/install_and_build/index.rst new file +1 -1
+        ninja -C build
\ No newline at end of file
--

2.41.0.windows.1

#10 lore raw

PATCH 3/6 Section 3: Setting up a System to Run DPDK Applications

In reply to David Young
---
 .../getting_started_guide/system_setup.rst    | 195 ++++++++++++++++++
 1 file changed, 195 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/system_setup.rst
doc/guides/getting_started_guide/system_setup.rst new file +195 -0
new file mode 100644
index 0000000000..fa9d249ec7
@@ -0,0 +1,195 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _memory_setup:
+
+.. |reg| unicode:: U+000AE
+
+Setting up a System to Run DPDK Applications
+============================================
+
+This section provides step-by-step instructions for setting up your system to run DPDK applications. It covers system configurations for Linux, FreeBSD, and Windows. Each section details the necessary memory and device setups for these operating systems.
+
+Navigate to the section that corresponds to your operating system to begin the setup process.
+
+.. contents:: Table of Contents
+   :local:
+
+System Setup for Linux
+----------------------
+
+Memory Setup: Reserving Hugepages
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+For Linux, DPDK requires hugepages be reserved for its use on the system. To check if hugepages are are on your system, you can run the following command::
+
+        grep HugePages_Total /proc/meminfo
+
+If hugepages are not reserved, you will need to reserve them by following these steps:
+
+1. Determine the number of hugepages you want to allocate. For example, to allocate 1024 hugepages of 2MB each, you can use the following command::
+
+        echo 1024 | sudo tee /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
+
+2. To make the hugepages configuration persistent across reboots, add the following line to your `/etc/sysctl.conf` file, adjusting the number of hugepages as needed::
+
+        vm.nr_hugepages = 1024
+
+3. Most distributions make hugepages available via `/dev/hugepages`, so this step may not be necessary. If you need to manually mount the hugepages filesystem, add the following line to your `/etc/fstab` file::
+
+        nodev /mnt/huge hugetlbfs defaults 0 0
+
+   Then, create the mount directory and mount the filesystem::
+
+        mkdir -p /mnt/huge
+        mount -a
+
+Device Setup: VFIO
+^^^^^^^^^^^^^^^^^^
+
+VFIO is a robust and secure driver that relies on IOMMU protection.
+To make use of VFIO on Linux, the ``vfio-pci`` module must be loaded:
+
+.. code-block:: console
+
+    sudo modprobe vfio-pci
+
+VFIO kernel is usually present by default in all distributions,
+however please consult your distribution's documentation to make sure that is the case.
+
+To make use of full VFIO functionality,
+both kernel and BIOS must support and be configured
+to use IO virtualization (such as Intel\ |reg| VT-d).
+
+.. note::
+
+   In most cases, specifying "iommu=on" as kernel parameter should be enough to
+   configure the Linux kernel to use IOMMU.
+
+For proper operation of VFIO when running DPDK applications as a non-privileged user,
+correct permissions should also be set up.
+For more information, refer to :ref:`running_dpdk_apps_without_root`.
+
+Refer to :ref:`vfio_no_iommu_mode` when there is no IOMMU available on the system.
+
+Binding and Unbinding Network Ports to/from VFIO-PCI Module
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+To bind or unbind network ports to/from the `vfio-pci` module on Linux, follow these steps:
+
+Replace ``<module_id>`` with the appropriate module identifier.
+
+**Unbind from current module**:
+   If a device is bound to a kernel driver, unbind it:
+
+   .. code-block:: bash
+
+      sudo dpdk-devbind.py -u <module_id>
+
+**Bind to vfio-pci module**:
+   Bind the device to the `vfio-pci` module:
+
+   .. code-block:: bash
+
+      sudo dpdk-devbind.py -b vfio-pci <module_id>
+
+System Setup for FreeBSD
+------------------------
+
+.. _loading_contigmem_module:
+
+Memory Setup: Loading the DPDK contigmem Module
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+To run a DPDK application on FreeBSD, physically contiguous memory is required. In the absence of non-transparent superpages, the included sources for the `contigmem` kernel module provides the ability to present contiguous blocks of memory for the DPDK to use. 
+The ``contigmem`` module must be loaded into the running kernel before any DPDK is run.
+Once DPDK is installed on the system, the module can be found in the ``/boot/modules``
+directory.
+
+The amount of physically contiguous memory along with the number of physically
+contiguous blocks to be reserved by the module can be set at runtime prior to module
+loading using::
+
+    kenv hw.contigmem.num_buffers=n
+    kenv hw.contigmem.buffer_size=m
+
+The kernel environment variables can also be specified during boot by placing the
+following in ``/boot/loader.conf``::
+
+    hw.contigmem.num_buffers=n
+    hw.contigmem.buffer_size=m
+
+The variables can be inspected using the following command::
+
+    sysctl -a hw.contigmem
+
+The module can then be loaded using ``kldload``::
+
+    cd /boot/modules
+    kldload contigmem
+
+Device Setup: Loading the DPDK nic_uio Module
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+After :ref:`loading_contigmem_module` on FreeBSD, the ``nic_uio`` module must also be loaded into the running kernel prior to running any DPDK application, e.g. using::
+
+    cd /boot/modules
+    kldload nic_uio
+
+By default, the ``nic_uio`` module will take ownership of network ports if they are
+recognized DPDK devices and are not owned by another module. 
+However, since the FreeBSD kernel includes support, either built-in, 
+or via a separate driver module, for most network card devices,
+it is likely that the ports to be used are already bound to a driver other than
+``nic_uio``.
+
+To re-bind the ports to the `nic_uio` module upon loading, use the following command::
+
+    kenv hw.nic_uio.bdfs="b:d:f,b:d:f,..."
+
+Where a comma-separated list of selectors is set, the list must not contain any
+whitespace.
+
+The variable can also be specified during boot by placing the following into
+``/boot/loader.conf``, before the previously-described ``nic_uio_load`` line::
+
+    hw.nic_uio.bdfs="2:0:0,2:0:1"
+    nic_uio_load="YES"
+
+Binding and Unbinding Network Ports to/from nic_uio Module
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+If the original driver for a network port has been compiled into the kernel, 
+it is necessary to reboot FreeBSD to restore the original device binding. 
+Before doing so, update or remove the ``hw.nic_uio.bdfs`` in ``/boot/loader.conf``.
+
+If rebinding to a driver that is a loadable module, the network port binding can be
+reset without rebooting. To do so, unload both the target kernel module and the
+``nic_uio`` module, modify or clear the ``hw.nic_uio.bdfs`` kernel environment
+(``kenv``) value, and reload the two drivers - first the original kernel driver,
+and then the ``nic_uio`` driver.
+
+Example commands to perform these steps are shown below::
+
+    kldunload nic_uio
+    kldunload <original_driver>
+    kenv -u hw.nic_uio.bdfs
+    kldload <original_driver>
+    kldload nic_uio  # optional
+
+System Setup for Windows
+------------------------
+
+Memory Setup: Installing Windows Modules
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+Before running DPDK applications on Windows, certain kernel-mode drivers must be installed. Note that these drivers are not signed, so you'll need to disable signature enforcement. However, be cautious as this can weaken your OS security and is generally not recommended in production environments.
+
+Device Setup: Install Drivers
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+To run DPDK applications on Windows, you'll need to install specific kernel-mode drivers:
+
+- **virt2phys**: This driver is essential for providing access to physical addresses and is mandatory for allocating physically-contiguous memory, which is required by hardware PMDs. Once loaded successfully, this driver will appear in the Device Manager as ``Virtual to physical address translator device`` under the Kernel bypass category. If DPDK cannot communicate with the driver, a warning will be printed during initialization.
+
+- **NetUIO**: This driver provides access to device hardware resources and is mandatory for all hardware PMDs, except for the mlx5 PMD. Devices supported by NetUIO are listed in ``netuio.inf``. You can extend this list to try running DPDK with new devices.
\ No newline at end of file
Signature · 1 line
2.41.0.windows.1
#11 lore raw

Re: [PATCH 3/6] Section 3: Setting up a System to Run DPDK Applications

Quoted 15 lines · David Young
---
 .../getting_started_guide/system_setup.rst    | 195 ++++++++++++++++++
 1 file changed, 195 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/system_setup.rst
doc/guides/getting_started_guide/system_setup.rst new file +4 -0
new file mode 100644
index 0000000000..fa9d249ec7
@@ -0,0 +1,195 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _memory_setup:

doc/guides/getting_started_guide/system_setup.rst line 14

Quoted 10 lines
doc/guides/getting_started_guide/system_setup.rst new file +10 -0
+
+.. |reg| unicode:: U+000AE
+
+Setting up a System to Run DPDK Applications
+============================================
+
+This section provides step-by-step instructions for setting up your system to run DPDK applications. It covers system configurations for Linux, FreeBSD, and Windows. Each section details the necessary memory and device setups for these operating systems.
+
+Navigate to the section that corresponds to your operating system to begin the setup process.
+

Not sure above sentences adds value.

Quoted 23 lines
doc/guides/getting_started_guide/system_setup.rst new file +22 -0
+.. contents:: Table of Contents
+   :local:
+
+System Setup for Linux
+----------------------
+
+Memory Setup: Reserving Hugepages
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+For Linux, DPDK requires hugepages be reserved for its use on the system. To check if hugepages are are on your system, you can run the following command::
+
+        grep HugePages_Total /proc/meminfo
+
+If hugepages are not reserved, you will need to reserve them by following these steps:
+
+1. Determine the number of hugepages you want to allocate. For example, to allocate 1024 hugepages of 2MB each, you can use the following command::
+
+        echo 1024 | sudo tee /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
+
+2. To make the hugepages configuration persistent across reboots, add the following line to your `/etc/sysctl.conf` file, adjusting the number of hugepages as needed::
+
+        vm.nr_hugepages = 1024

doc/guides/getting_started_guide/system_setup.rst line 46

Quoted 10 lines
doc/guides/getting_started_guide/system_setup.rst new file +10 -0
+
+3. Most distributions make hugepages available via `/dev/hugepages`, so this step may not be necessary. If you need to manually mount the hugepages filesystem, add the following line to your `/etc/fstab` file::
+
+        nodev /mnt/huge hugetlbfs defaults 0 0
+
+   Then, create the mount directory and mount the filesystem::
+
+        mkdir -p /mnt/huge
+        mount -a
+

We have './usertools/dpdk-hugepages.py' script for this, which I am using regularly.

Script is wrapper to what described above, so I think good to explain basics, but also may worth mentioning from script, it is more user friendly than above instructions.

#12 lore raw

Re: [PATCH 3/6] Section 3: Setting up a System to Run DPDK Applications

Quoted 69 lines · Ferruh Yigit
Quoted 15 lines · David Young
---
 .../getting_started_guide/system_setup.rst    | 195 ++++++++++++++++++
 1 file changed, 195 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/system_setup.rst
doc/guides/getting_started_guide/system_setup.rst new file +4 -0
new file mode 100644
index 0000000000..fa9d249ec7
@@ -0,0 +1,195 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _memory_setup:

doc/guides/getting_started_guide/system_setup.rst line 14

Quoted 10 lines
doc/guides/getting_started_guide/system_setup.rst new file +10 -0
+
+.. |reg| unicode:: U+000AE
+
+Setting up a System to Run DPDK Applications
+============================================
+
+This section provides step-by-step instructions for setting up your system to run DPDK applications. It covers system configurations for Linux, FreeBSD, and Windows. Each section details the necessary memory and device setups for these operating systems.
+
+Navigate to the section that corresponds to your operating system to begin the setup process.
+

Not sure above sentences adds value.

Quoted 23 lines
doc/guides/getting_started_guide/system_setup.rst new file +22 -0
+.. contents:: Table of Contents
+   :local:
+
+System Setup for Linux
+----------------------
+
+Memory Setup: Reserving Hugepages
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+For Linux, DPDK requires hugepages be reserved for its use on the system. To check if hugepages are are on your system, you can run the following command::
+
+        grep HugePages_Total /proc/meminfo
+
+If hugepages are not reserved, you will need to reserve them by following these steps:
+
+1. Determine the number of hugepages you want to allocate. For example, to allocate 1024 hugepages of 2MB each, you can use the following command::
+
+        echo 1024 | sudo tee /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
+
+2. To make the hugepages configuration persistent across reboots, add the following line to your `/etc/sysctl.conf` file, adjusting the number of hugepages as needed::
+
+        vm.nr_hugepages = 1024

doc/guides/getting_started_guide/system_setup.rst line 46

Quoted 10 lines
doc/guides/getting_started_guide/system_setup.rst new file +10 -0
+
+3. Most distributions make hugepages available via `/dev/hugepages`, so this step may not be necessary. If you need to manually mount the hugepages filesystem, add the following line to your `/etc/fstab` file::
+
+        nodev /mnt/huge hugetlbfs defaults 0 0
+
+   Then, create the mount directory and mount the filesystem::
+
+        mkdir -p /mnt/huge
+        mount -a
+

We have './usertools/dpdk-hugepages.py' script for this, which I am using regularly.

Quoted 4 lines

Script is wrapper to what described above, so I think good to explain basics, but also may worth mentioning from script, it is more user friendly than above instructions.

Actually, if script can do all the basics - something I believe Stephen and Thomas also pointed out on a slack review earlier - then we should just drop the manual steps from here. If we think the script is sufficiently robust, we can drop them from the doc entirely, or if not, move them to an appendix which we reference here.

/Bruce

author
#13 lore raw

Re: [PATCH 3/6] Section 3: Setting up a System to Run DPDK Applications

I asked the following in the Slack channel, responding to Stephen and Thomas so asking in this thread as well to confirm:

To confirm, the three steps in 3.1.1 Memory Setup: Reservering Hugepages at
http://170.249.220.94/getting_started_guide/system_setup.html#system-setup-for-linux
can be replaced with the following:

Memory Setup: Reserving Hugepages
To simplify the hugepages setup, use the dpdk-hugepages script:
sudo dpdk-hugepages --setup

To confirm, the instructions in 3.1.2 Device Setup: VFIO at
http://170.249.220.94/getting_started_guide/system_setup.html#device-setup-vfio
can be replaced with the following:

Device Setup: VFIO
For VFIO setup, please refer to the `Kernel Documentation for VFIO <
https://www.kernel.org/doc/html/latest/driver-api/vfio.html>`_.

Thanks!
David Young
Professional Copywriter/Technical Writer
Young Copy
+1 (678) 500-9550
https://www.youngcopy.com

Quoted 97 lines · Bruce Richardson
Quoted 7 lines · Ferruh Yigit

Review

Quoted 6 lines · David Young
---
 .../getting_started_guide/system_setup.rst    | 195 ++++++++++++++++++
 1 file changed, 195 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/system_setup.rst
(quoted diff) +0 -0

b/doc/guides/getting_started_guide/system_setup.rst

Quoted 8 lines
Quoted 8 lines

new file mode 100644
index 0000000000..fa9d249ec7

doc/guides/getting_started_guide/system_setup.rst new file +3 -0
@@ -0,0 +1,195 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
Quoted 8 lines

doc/guides/getting_started_guide/system_setup.rst

Quoted 8 lines
doc/guides/getting_started_guide/system_setup.rst new file +8 -0
+.. _memory_setup:
+
+.. |reg| unicode:: U+000AE
+
+Setting up a System to Run DPDK Applications
+============================================
+
+This section provides step-by-step instructions for setting up your

system to run DPDK applications. It covers system configurations for Linux, FreeBSD, and Windows. Each section details the necessary memory and device setups for these operating systems.

Quoted 2 lines

doc/guides/getting_started_guide/system_setup.rst line 13

Quoted 2 lines
doc/guides/getting_started_guide/system_setup.rst new file +2 -0
+
+Navigate to the section that corresponds to your operating system to

begin the setup process.

Quoted 6 lines

doc/guides/getting_started_guide/system_setup.rst line 14

Quoted 1 line
doc/guides/getting_started_guide/system_setup.rst new file +1 -0
+

Not sure above sentences adds value.

Quoted 10 lines

doc/guides/getting_started_guide/system_setup.rst

Quoted 10 lines
doc/guides/getting_started_guide/system_setup.rst new file +10 -0
+.. contents:: Table of Contents
+   :local:
+
+System Setup for Linux
+----------------------
+
+Memory Setup: Reserving Hugepages
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+For Linux, DPDK requires hugepages be reserved for its use on the

system. To check if hugepages are are on your system, you can run the following command::

Quoted 4 lines

doc/guides/getting_started_guide/system_setup.rst

Quoted 4 lines
doc/guides/getting_started_guide/system_setup.rst new file +4 -0
+
+        grep HugePages_Total /proc/meminfo
+
+If hugepages are not reserved, you will need to reserve them by

following these steps:

Quoted 2 lines

doc/guides/getting_started_guide/system_setup.rst line 30

Quoted 2 lines
doc/guides/getting_started_guide/system_setup.rst new file +2 -0
+
+1. Determine the number of hugepages you want to allocate. For

example, to allocate 1024 hugepages of 2MB each, you can use the following command::

Quoted 2 lines

doc/guides/getting_started_guide/system_setup.rst line 32

Quoted 2 lines
doc/guides/getting_started_guide/system_setup.rst new file +2 -0
+
+        echo 1024 | sudo tee

/sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages

Quoted 2 lines

doc/guides/getting_started_guide/system_setup.rst line 34

Quoted 2 lines
doc/guides/getting_started_guide/system_setup.rst new file +2 -0
+
+2. To make the hugepages configuration persistent across reboots, add

the following line to your /etc/sysctl.conf file, adjusting the number of hugepages as needed::

Quoted 4 lines

doc/guides/getting_started_guide/system_setup.rst

Quoted 4 lines
doc/guides/getting_started_guide/system_setup.rst new file +4 -0
+
+        vm.nr_hugepages = 1024
+
+3. Most distributions make hugepages available via `/dev/hugepages`,

so this step may not be necessary. If you need to manually mount the hugepages filesystem, add the following line to your /etc/fstab file::

Quoted 14 lines

doc/guides/getting_started_guide/system_setup.rst line 46

Quoted 9 lines
doc/guides/getting_started_guide/system_setup.rst new file +8 -0
+
+        nodev /mnt/huge hugetlbfs defaults 0 0
+
+   Then, create the mount directory and mount the filesystem::
+
+        mkdir -p /mnt/huge
+        mount -a
+

We have './usertools/dpdk-hugepages.py' script for this, which I am using regularly.

Quoted 4 lines

Script is wrapper to what described above, so I think good to explain basics, but also may worth mentioning from script, it is more user friendly than above instructions.

Actually, if script can do all the basics - something I believe Stephen and Thomas also pointed out on a slack review earlier - then we should just drop the manual steps from here. If we think the script is sufficiently robust, we can drop them from the doc entirely, or if not, move them to an appendix which we reference here.

/Bruce

#14 lore raw

PATCH 4/6 Section 4: Running Applications

In reply to David Young
---
 .../getting_started_guide/run_apps/index.rst  |  10 ++
 .../run_apps/run_apps.rst                     | 118 ++++++++++++++++++
 2 files changed, 128 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/run_apps/index.rst
 create mode 100644 doc/guides/getting_started_guide/run_apps/run_apps.rst
doc/guides/getting_started_guide/run_apps/index.rst new file +10 -0
new file mode 100644
index 0000000000..f033cac5f0
@@ -0,0 +1,10 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+Running Applications
+====================
+
+.. toctree::
+    :maxdepth: 2
+
+    run_apps
\ No newline at end of file
doc/guides/getting_started_guide/run_apps/run_apps.rst new file +118 -0

118 lines not on this page · raw message

Signature · 1 line
2.41.0.windows.1
#15 lore raw

Re: [PATCH 4/6] Section 4: Running Applications

Quoted 43 lines · David Young
---
 .../getting_started_guide/run_apps/index.rst  |  10 ++
 .../run_apps/run_apps.rst                     | 118 ++++++++++++++++++
 2 files changed, 128 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/run_apps/index.rst
 create mode 100644 doc/guides/getting_started_guide/run_apps/run_apps.rst
doc/guides/getting_started_guide/run_apps/index.rst new file +10 -0
new file mode 100644
index 0000000000..f033cac5f0
@@ -0,0 +1,10 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+Running Applications
+====================
+
+.. toctree::
+    :maxdepth: 2
+
+    run_apps
\ No newline at end of file
doc/guides/getting_started_guide/run_apps/run_apps.rst new file +12 -0
new file mode 100644
index 0000000000..339d4c0a68
@@ -0,0 +1,118 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _run_apps:
+
+Running Applications
+====================
+
+The following instructions apply to Linux, FreeBSD, and Windows.
+
+.. contents:: Table of Contents
+   :local:

doc/guides/getting_started_guide/run_apps/run_apps.rst line 22

Quoted 10 lines
doc/guides/getting_started_guide/run_apps/run_apps.rst new file +10 -0
+
+Running Applications on Linux and FreeBSD
+-----------------------------------------
+
+Compiling and Running Sample Applications
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+To compile a sample application:
+
+1. Navigate to the application's directory in the DPDK distribution.

This is not the 'examples' folder in the source code, and this is already mentioned as 'in the DPDK distribution', but I wonder if this requires a little more clarification.

Also this folder can be '<dpdk install dir>/share/dpdk/examples/' if DPDK installed manually.

doc/guides/getting_started_guide/run_apps/run_apps.rst line 34

Quoted 13 lines
doc/guides/getting_started_guide/run_apps/run_apps.rst new file +12 -0
+2. Execute the ``make`` command on Linux or ``gmake`` on FreeBSD.
+
+For instance, to compile the ``helloworld`` application:
+
+::
+
+    cd examples/helloworld
+    make    # On Linux
+    gmake   # On FreeBSD
+
+To run the application, use:
+

Should we mention here that running some applications requires root privilege?

doc/guides/getting_started_guide/run_apps/run_apps.rst line 40

Quoted 6 lines
doc/guides/getting_started_guide/run_apps/run_apps.rst new file +6 -0
+::
+
+    ./build/helloworld -l 0-2
+
+The ``-l`` option indicates the cores on which the application should run.
+

Should we provide a link to the eal argument documentation, which describes '-l' and more...

doc/guides/getting_started_guide/run_apps/run_apps.rst line 44

Quoted 5 lines
doc/guides/getting_started_guide/run_apps/run_apps.rst new file +4 -0
+Sample Applications Overview
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+1. **Hello World**: A basic application that prints a "hello world" message.

'helloworld' sample is about core management, it distributes the work (printing "hello world") to the cores provided in the argument list, does it worth to mention this, not sure.
Otherwise it is not clear what just printing "hello world" is good for, and why we have a sample like this.

doc/guides/getting_started_guide/run_apps/run_apps.rst line 45

Quoted 2 lines
doc/guides/getting_started_guide/run_apps/run_apps.rst new file +1 -0
+2. **Basic Forwarding**: A skeleton example of a forwarding application.

"packet forwarding" ??

#16 lore raw

PATCH 5/6 Section 5: Appendix

In reply to David Young
---
 .../appendix/cross_compile_dpdk.rst           |  37 +++
 .../appendix/dpdk_meson_build_options.rst     |  57 ++++
 .../getting_started_guide/appendix/index.rst  |  17 +
 .../running_dpdk_apps_without_root.rst        |  36 +++
 .../appendix/vfio_advanced.rst                | 295 ++++++++++++++++++
 5 files changed, 442 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/appendix/cross_compile_dpdk.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/dpdk_meson_build_options.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/index.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/running_dpdk_apps_without_root.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/vfio_advanced.rst
doc/guides/getting_started_guide/appendix/cross_compile_dpdk.rst new file +37 -0
new file mode 100644
index 0000000000..3e4efe23a4
@@ -0,0 +1,37 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _cross_compile_dpdk:
+
+Cross-compiling DPDK for Different Architectures on Linux
+=========================================================
+
+Cross-compiling DPDK for different architectures follows a similar process. Here are the general steps:
+
+1. **Get Compiler and Libraries**: Obtain the cross-compiler toolchain and any required libraries specific to the target architecture.
+
+2. **Build Using Cross-File**: Use Meson to set up the build with a cross-file specific to the target architecture, and then build with Ninja.
+
+Prerequisites
+-------------
+
+- NUMA Library (if required)
+- Meson and Ninja
+- pkg-config for the target architecture
+- Specific GNU or LLVM/Clang toolchain for the target architecture
+
+Cross-Compiling DPDK
+--------------------
+
+1. **Set Up the Cross Toolchain**: Download and extract the toolchain for the target architecture. Add it to the PATH.
+
+2. **Compile Any Required Libraries**: Compile libraries like NUMA if required.
+
+3. **Cross-Compile DPDK with Meson**:
+
+   .. code-block:: bash
+
+      meson setup cross-build --cross-file <target_machine_configuration>
+      ninja -C cross-build
+
+Refer to the specific sections for ARM64, LoongArch, and RISC-V for detailed instructions and architecture-specific considerations.
\ No newline at end of file
doc/guides/getting_started_guide/appendix/dpdk_meson_build_options.rst new file +57 -0

58 lines not on this page · raw message

doc/guides/getting_started_guide/appendix/index.rst new file +17 -0
new file mode 100644
index 0000000000..23bb1fcf78
@@ -0,0 +1,17 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _appendix:
+
+Appendix
+========
+
+This section covers specific guides related to DPDK.
+
+.. toctree::
+    :maxdepth: 2
+
+    dpdk_meson_build_options
+    running_dpdk_apps_without_root
+    vfio_advanced
+    cross_compile_dpdk
\ No newline at end of file
doc/guides/getting_started_guide/appendix/running_dpdk_apps_without_root.rst new file +36 -0
new file mode 100644
index 0000000000..9f214bbdc8
@@ -0,0 +1,36 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _running_dpdk_apps_without_root:
+
+Running DPDK Applications Without Root Privileges
+=================================================
+
+Although applications using the DPDK use network ports and other hardware resources
+directly, with a number of small permission adjustments, 
+it is possible to run these applications as a user other than “root”. 
+To do so, the ownership, or permissions, on the following file system objects should be
+adjusted so the user account being used to run the DPDK application has
+access to them:
+
+Linux
+-----
+
+1. **Create a DPDK User Group**: Create a new user group for DPDK and add the desired user to this group.
+
+2. **Set Up Hugepages**: Configure hugepages for the user.
+
+3. **Bind the NIC to a User-Space Driver**: Use the DPDK tool ``dpdk-devbind.py`` to bind the NIC to a user-space driver like ``vfio-pci`` or ``igb_uio``.
+
+4. **Set Permissions for UIO/VFIO Devices**: Change the ownership and permissions of the UIO or VFIO devices to allow access by the DPDK user group.
+
+5. **Run the DPDK Application**: Run the desired DPDK application as the user who has been added to the DPDK group.
+
+FreeBSD
+-------
+
+- The userspace-io device files in ``/dev``, for example, ``/dev/uio0``, ``/dev/uio1``, and so on
+- The userspace contiguous memory device: ``/dev/contigmem``
+
+
+Refer to the `DPDK Release Notes <https://doc.dpdk.org/guides/rel_notes/index.html>`_ for supported applications.
\ No newline at end of file
doc/guides/getting_started_guide/appendix/vfio_advanced.rst new file +295 -0

296 lines not on this page · raw message

Signature · 1 line
2.41.0.windows.1
#17 lore raw

Re: [PATCH 5/6] Section 5: Appendix

Quoted 4 lines · David Young
---
 .../appendix/cross_compile_dpdk.rst           |  37 +++
 .../appendix/dpdk_meson_build_options.rst     |  57 ++++
 .../getting_started_guide/appendix/index.rst  |  17 +
Quoted 9 lines
 .../running_dpdk_apps_without_root.rst        |  36 +++
 .../appendix/vfio_advanced.rst                | 295 ++++++++++++++++++
 5 files changed, 442 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/appendix/cross_compile_dpdk.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/dpdk_meson_build_options.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/index.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/running_dpdk_apps_without_root.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/vfio_advanced.rst

These files are put under 'appendix' folder,
and I can see these documents are linked from other 'getting started guide' documentations, which I assume the reason to put these under 'appendix' folder.
But these are not limited to getting started, perhaps we can do a better organization of them out of getting started appendix.

Quoted 157 lines
doc/guides/getting_started_guide/appendix/cross_compile_dpdk.rst new file +37 -0
new file mode 100644
index 0000000000..3e4efe23a4
@@ -0,0 +1,37 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _cross_compile_dpdk:
+
+Cross-compiling DPDK for Different Architectures on Linux
+=========================================================
+
+Cross-compiling DPDK for different architectures follows a similar process. Here are the general steps:
+
+1. **Get Compiler and Libraries**: Obtain the cross-compiler toolchain and any required libraries specific to the target architecture.
+
+2. **Build Using Cross-File**: Use Meson to set up the build with a cross-file specific to the target architecture, and then build with Ninja.
+
+Prerequisites
+-------------
+
+- NUMA Library (if required)
+- Meson and Ninja
+- pkg-config for the target architecture
+- Specific GNU or LLVM/Clang toolchain for the target architecture
+
+Cross-Compiling DPDK
+--------------------
+
+1. **Set Up the Cross Toolchain**: Download and extract the toolchain for the target architecture. Add it to the PATH.
+
+2. **Compile Any Required Libraries**: Compile libraries like NUMA if required.
+
+3. **Cross-Compile DPDK with Meson**:
+
+   .. code-block:: bash
+
+      meson setup cross-build --cross-file <target_machine_configuration>
+      ninja -C cross-build
+
+Refer to the specific sections for ARM64, LoongArch, and RISC-V for detailed instructions and architecture-specific considerations.
\ No newline at end of file
doc/guides/getting_started_guide/appendix/dpdk_meson_build_options.rst new file +57 -0
new file mode 100644
index 0000000000..6669f98371
@@ -0,0 +1,57 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _dpdk_meson_build_options:
+
+DPDK Meson Build Configuration Options
+======================================
+
+DPDK provides a number of build configuration options that can be adjusted using the Meson build system. These options can be listed by running ``meson configure`` inside a configured build
+folder.
+
+Changing the Build Type
+-----------------------
+
+To change the build type from the default "release" to a regular "debug" build,
+you can either:
+
+- Pass ``-Dbuildtype=debug`` or ``--buildtype=debug`` to meson when configuring the build folder initially.
+- Run ``meson configure -Dbuildtype=debug`` inside the build folder after the initial meson run.
+
+Platform Options
+----------------
+
+The "platform" option specifies a set of configuration parameters that will be used. 
+The valid values are:
+
+- ``-Dplatform=native`` will tailor the configuration to the build machine.
+- ``-Dplatform=generic`` will use configuration that works on all machines of the same architecture as the build machine.
+- ``-Dplatform=<SoC>`` will use configuration optimized for a particular SoC.
+
+Consult the "socs" dictionary in ``config/arm/meson.build`` to see which SoCs are supported.
+
+Overriding Platform Parameters
+------------------------------
+
+The values determined by the platform parameter may be overwritten. For example,
+to set the ``max_lcores`` value to 256, you can either:
+
+- Pass ``-Dmax_lcores=256`` to meson when configuring the build folder initially.
+- Run ``meson configure -Dmax_lcores=256`` inside the build folder after the initial meson run.
+
+Building Sample Applications
+----------------------------
+
+Some of the DPDK sample applications in the examples directory can be automatically built as
+part of a meson build. To do so, pass a comma-separated list of the examples to build to the
+``-Dexamples`` meson option as below::
+
+    meson setup -Dexamples=l2fwd,l3fwd build
+
+There is also a special value "all" to request that all example applications whose dependencies
+are met on the current system are built. When ``-Dexamples=all`` is set as a meson option,
+meson will check each example application to see if it can be built, and add all which can be
+built to the list of tasks in the ninja build configuration file.
+
+For a complete list of options, run ``meson configure`` inside your configured build
+folder.
\ No newline at end of file
doc/guides/getting_started_guide/appendix/index.rst new file +17 -0
new file mode 100644
index 0000000000..23bb1fcf78
@@ -0,0 +1,17 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _appendix:
+
+Appendix
+========
+
+This section covers specific guides related to DPDK.
+
+.. toctree::
+    :maxdepth: 2
+
+    dpdk_meson_build_options
+    running_dpdk_apps_without_root
+    vfio_advanced
+    cross_compile_dpdk
\ No newline at end of file
doc/guides/getting_started_guide/appendix/running_dpdk_apps_without_root.rst new file +18 -0
new file mode 100644
index 0000000000..9f214bbdc8
@@ -0,0 +1,36 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _running_dpdk_apps_without_root:
+
+Running DPDK Applications Without Root Privileges
+=================================================
+
+Although applications using the DPDK use network ports and other hardware resources
+directly, with a number of small permission adjustments, 
+it is possible to run these applications as a user other than “root”. 
+To do so, the ownership, or permissions, on the following file system objects should be
+adjusted so the user account being used to run the DPDK application has
+access to them:
+
+Linux
+-----
+

doc/guides/getting_started_guide/appendix/running_dpdk_apps_without_root.rst line 28

Quoted 10 lines
doc/guides/getting_started_guide/appendix/running_dpdk_apps_without_root.rst new file +10 -0
+1. **Create a DPDK User Group**: Create a new user group for DPDK and add the desired user to this group.
+
+2. **Set Up Hugepages**: Configure hugepages for the user.
+
+3. **Bind the NIC to a User-Space Driver**: Use the DPDK tool ``dpdk-devbind.py`` to bind the NIC to a user-space driver like ``vfio-pci`` or ``igb_uio``.
+
+4. **Set Permissions for UIO/VFIO Devices**: Change the ownership and permissions of the UIO or VFIO devices to allow access by the DPDK user group.
+
+5. **Run the DPDK Application**: Run the desired DPDK application as the user who has been added to the DPDK group.
+

I think we need a sample commands, additional to description, on how to run an application as a non-priviledged user.

doc/guides/getting_started_guide/appendix/running_dpdk_apps_without_root.rst line 36

Quoted 9 lines
doc/guides/getting_started_guide/appendix/running_dpdk_apps_without_root.rst new file +8 -0
+FreeBSD
+-------
+
+- The userspace-io device files in ``/dev``, for example, ``/dev/uio0``, ``/dev/uio1``, and so on
+- The userspace contiguous memory device: ``/dev/contigmem``
+
+
+Refer to the `DPDK Release Notes <https://doc.dpdk.org/guides/rel_notes/index.html>`_ for supported applications.

Applications that run without root privileges? Do we have that kind of list in release notes?

Quoted 16 lines

\ No newline at end of file

doc/guides/getting_started_guide/appendix/vfio_advanced.rst new file +9 -0
new file mode 100644
index 0000000000..1cdb138eb7
@@ -0,0 +1,295 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _vfio_advanced:
+
+.. |reg| unicode:: U+000AE
+
+VFIO Advanced
+=============

doc/guides/getting_started_guide/appendix/vfio_advanced.rst line 19

Quoted 10 lines
doc/guides/getting_started_guide/appendix/vfio_advanced.rst new file +10 -0
+
+
+.. contents:: Table of Contents
+   :local:
+
+.. _vfio_no_iommu_mode:
+
+VFIO no-IOMMU mode
+------------------
+

I guess this is the only documentation specific to "VFIO", (and title is VFIO advanced), I think it can be better to start with describing VFIO, instead of starting with no-iommu mode.

#18 lore raw

Re: [PATCH 5/6] Section 5: Appendix

Quoted 59 lines · Ferruh Yigit
Quoted 4 lines · David Young
---
 .../appendix/cross_compile_dpdk.rst           |  37 +++
 .../appendix/dpdk_meson_build_options.rst     |  57 ++++
 .../getting_started_guide/appendix/index.rst  |  17 +
Quoted 9 lines
 .../running_dpdk_apps_without_root.rst        |  36 +++
 .../appendix/vfio_advanced.rst                | 295 ++++++++++++++++++
 5 files changed, 442 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/appendix/cross_compile_dpdk.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/dpdk_meson_build_options.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/index.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/running_dpdk_apps_without_root.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/vfio_advanced.rst

These files are put under 'appendix' folder,
and I can see these documents are linked from other 'getting started guide' documentations, which I assume the reason to put these under 'appendix' folder.
But these are not limited to getting started, perhaps we can do a better organization of them out of getting started appendix.

Quoted 35 lines
doc/guides/getting_started_guide/appendix/cross_compile_dpdk.rst new file +29 -0
new file mode 100644
index 0000000000..3e4efe23a4
@@ -0,0 +1,37 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _cross_compile_dpdk:
+
+Cross-compiling DPDK for Different Architectures on Linux
+=========================================================
+
+Cross-compiling DPDK for different architectures follows a similar process. Here are the general steps:
+
+1. **Get Compiler and Libraries**: Obtain the cross-compiler toolchain and any required libraries specific to the target architecture.
+
+2. **Build Using Cross-File**: Use Meson to set up the build with a cross-file specific to the target architecture, and then build with Ninja.
+
+Prerequisites
+-------------
+
+- NUMA Library (if required)
+- Meson and Ninja
+- pkg-config for the target architecture
+- Specific GNU or LLVM/Clang toolchain for the target architecture
+
+Cross-Compiling DPDK
+--------------------
+
+1. **Set Up the Cross Toolchain**: Download and extract the toolchain for the target architecture. Add it to the PATH.
+
+2. **Compile Any Required Libraries**: Compile libraries like NUMA if required.
+
Quoted 8 lines

doc/guides/getting_started_guide/appendix/cross_compile_dpdk.rst line 37

Quoted 8 lines
doc/guides/getting_started_guide/appendix/cross_compile_dpdk.rst new file +8 -0
+3. **Cross-Compile DPDK with Meson**:
+
+   .. code-block:: bash
+
+      meson setup cross-build --cross-file <target_machine_configuration>
+      ninja -C cross-build
+
+Refer to the specific sections for ARM64, LoongArch, and RISC-V for detailed instructions and architecture-specific considerations.

Mentioned sections are not in this document, so can be good to provide link for them.

Quoted 176 lines
Quoted 114 lines

\ No newline at end of file

doc/guides/getting_started_guide/appendix/dpdk_meson_build_options.rst new file +57 -0
new file mode 100644
index 0000000000..6669f98371
@@ -0,0 +1,57 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _dpdk_meson_build_options:
+
+DPDK Meson Build Configuration Options
+======================================
+
+DPDK provides a number of build configuration options that can be adjusted using the Meson build system. These options can be listed by running ``meson configure`` inside a configured build
+folder.
+
+Changing the Build Type
+-----------------------
+
+To change the build type from the default "release" to a regular "debug" build,
+you can either:
+
+- Pass ``-Dbuildtype=debug`` or ``--buildtype=debug`` to meson when configuring the build folder initially.
+- Run ``meson configure -Dbuildtype=debug`` inside the build folder after the initial meson run.
+
+Platform Options
+----------------
+
+The "platform" option specifies a set of configuration parameters that will be used. 
+The valid values are:
+
+- ``-Dplatform=native`` will tailor the configuration to the build machine.
+- ``-Dplatform=generic`` will use configuration that works on all machines of the same architecture as the build machine.
+- ``-Dplatform=<SoC>`` will use configuration optimized for a particular SoC.
+
+Consult the "socs" dictionary in ``config/arm/meson.build`` to see which SoCs are supported.
+
+Overriding Platform Parameters
+------------------------------
+
+The values determined by the platform parameter may be overwritten. For example,
+to set the ``max_lcores`` value to 256, you can either:
+
+- Pass ``-Dmax_lcores=256`` to meson when configuring the build folder initially.
+- Run ``meson configure -Dmax_lcores=256`` inside the build folder after the initial meson run.
+
+Building Sample Applications
+----------------------------
+
+Some of the DPDK sample applications in the examples directory can be automatically built as
+part of a meson build. To do so, pass a comma-separated list of the examples to build to the
+``-Dexamples`` meson option as below::
+
+    meson setup -Dexamples=l2fwd,l3fwd build
+
+There is also a special value "all" to request that all example applications whose dependencies
+are met on the current system are built. When ``-Dexamples=all`` is set as a meson option,
+meson will check each example application to see if it can be built, and add all which can be
+built to the list of tasks in the ninja build configuration file.
+
+For a complete list of options, run ``meson configure`` inside your configured build
+folder.
\ No newline at end of file
doc/guides/getting_started_guide/appendix/index.rst new file +17 -0
new file mode 100644
index 0000000000..23bb1fcf78
@@ -0,0 +1,17 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _appendix:
+
+Appendix
+========
+
+This section covers specific guides related to DPDK.
+
+.. toctree::
+    :maxdepth: 2
+
+    dpdk_meson_build_options
+    running_dpdk_apps_without_root
+    vfio_advanced
+    cross_compile_dpdk
\ No newline at end of file
doc/guides/getting_started_guide/appendix/running_dpdk_apps_without_root.rst new file +18 -0
new file mode 100644
index 0000000000..9f214bbdc8
@@ -0,0 +1,36 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _running_dpdk_apps_without_root:
+
+Running DPDK Applications Without Root Privileges
+=================================================
+
+Although applications using the DPDK use network ports and other hardware resources
+directly, with a number of small permission adjustments, 
+it is possible to run these applications as a user other than “root”. 
+To do so, the ownership, or permissions, on the following file system objects should be
+adjusted so the user account being used to run the DPDK application has
+access to them:
+
+Linux
+-----
+

doc/guides/getting_started_guide/appendix/running_dpdk_apps_without_root.rst line 28

Quoted 10 lines
doc/guides/getting_started_guide/appendix/running_dpdk_apps_without_root.rst new file +10 -0
+1. **Create a DPDK User Group**: Create a new user group for DPDK and add the desired user to this group.
+
+2. **Set Up Hugepages**: Configure hugepages for the user.
+
+3. **Bind the NIC to a User-Space Driver**: Use the DPDK tool ``dpdk-devbind.py`` to bind the NIC to a user-space driver like ``vfio-pci`` or ``igb_uio``.
+
+4. **Set Permissions for UIO/VFIO Devices**: Change the ownership and permissions of the UIO or VFIO devices to allow access by the DPDK user group.
+
+5. **Run the DPDK Application**: Run the desired DPDK application as the user who has been added to the DPDK group.
+

I think we need a sample commands, additional to description, on how to run an application as a non-priviledged user.

doc/guides/getting_started_guide/appendix/running_dpdk_apps_without_root.rst line 36

Quoted 9 lines
doc/guides/getting_started_guide/appendix/running_dpdk_apps_without_root.rst new file +8 -0
+FreeBSD
+-------
+
+- The userspace-io device files in ``/dev``, for example, ``/dev/uio0``, ``/dev/uio1``, and so on
+- The userspace contiguous memory device: ``/dev/contigmem``
+
+
+Refer to the `DPDK Release Notes <https://doc.dpdk.org/guides/rel_notes/index.html>`_ for supported applications.

Applications that run without root privileges? Do we have that kind of list in release notes?

Quoted 16 lines

\ No newline at end of file

doc/guides/getting_started_guide/appendix/vfio_advanced.rst new file +9 -0
new file mode 100644
index 0000000000..1cdb138eb7
@@ -0,0 +1,295 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+.. _vfio_advanced:
+
+.. |reg| unicode:: U+000AE
+
+VFIO Advanced
+=============

doc/guides/getting_started_guide/appendix/vfio_advanced.rst line 19

Quoted 10 lines
doc/guides/getting_started_guide/appendix/vfio_advanced.rst new file +10 -0
+
+
+.. contents:: Table of Contents
+   :local:
+
+.. _vfio_no_iommu_mode:
+
+VFIO no-IOMMU mode
+------------------
+

I guess this is the only documentation specific to "VFIO", (and title is VFIO advanced), I think it can be better to start with describing VFIO, instead of starting with no-iommu mode.

#19 lore raw

Re: [PATCH 5/6] Section 5: Appendix

In reply to Ferruh Yigit
Quoted 15 lines · Ferruh Yigit
Quoted 4 lines · David Young
---
 .../appendix/cross_compile_dpdk.rst           |  37 +++
 .../appendix/dpdk_meson_build_options.rst     |  57 ++++
 .../getting_started_guide/appendix/index.rst  |  17 +
Quoted 9 lines
 .../running_dpdk_apps_without_root.rst        |  36 +++
 .../appendix/vfio_advanced.rst                | 295 ++++++++++++++++++
 5 files changed, 442 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/appendix/cross_compile_dpdk.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/dpdk_meson_build_options.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/index.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/running_dpdk_apps_without_root.rst
 create mode 100644 doc/guides/getting_started_guide/appendix/vfio_advanced.rst
Quoted 7 lines

These files are put under 'appendix' folder,
and I can see these documents are linked from other 'getting started guide' documentations, which I assume the reason to put these under 'appendix' folder.
But these are not limited to getting started, perhaps we can do a better organization of them out of getting started appendix.

The plan is to merge all three GSG docs into one, in which case the single combined GSG should be the only thing referencing these. Therefore, I think having them placed as here makes most sense.

/Bruce

#20 lore raw

PATCH 6/6 Section 6: Glossary

In reply to David Young
---
 doc/guides/getting_started_guide/glossary.rst | 75 +++++++++++++++++++
 1 file changed, 75 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/glossary.rst
doc/guides/getting_started_guide/glossary.rst new file +75 -0
new file mode 100644
index 0000000000..7fcfe16f38
@@ -0,0 +1,75 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.
+
+Glossary
+========
+
+This glossary provides definitions for key terms and concepts used within DPDK. Understanding these terms will help in comprehending the functionality and architecture of DPDK.
+
+**BIOS (Basic Input/Output System)**
+
+The firmware used to perform hardware initialization during the booting process and to provide runtime services for operating systems and programs.
+
+**Bifurcated Driver**
+
+A driver model that splits functionality between kernel and userspace, often used in high-performance networking.
+
+**Clang-LLVM**
+
+A compiler toolchain that includes the Clang C compiler and LLVM linker, used for building DPDK on Windows.
+
+**contigmem Module**
+
+A module in FreeBSD that provides physically contiguous memory allocation used by DPDK.
+
+**DMA (Direct Memory Access)**
+
+A feature that allows hardware devices to access the main system memory directly, without involving the CPU.
+
+**EAL (Environment Abstraction Layer)**
+
+The layer within DPDK that abstracts environmental specifics and provides a standard programming interface.
+
+**hugepages**
+
+Large memory pages used by the operating system to manage memory more efficiently, especially in high-performance applications like DPDK.
+
+**IOMMU (Input-Output Memory Management Unit)**
+
+A hardware component that translates device-visible virtual addresses to physical addresses, providing memory protection and isolation.
+
+**MinGW-w64 Toolchain**
+
+A development environment for creating Windows applications, used as an option for compiling DPDK on Windows.
+
+**NIC (Network Interface Card)**
+
+A hardware component that connects a computer to a network.
+
+**nic_uio Module**
+
+A UIO driver for network devices in FreeBSD, used by DPDK.
+
+**NUMA (Non-Uniform Memory Access)**
+
+A computer memory design used in multiprocessing where the memory access time depends on the memory location relative to the processor.
+
+**PMD (POLL Mode Driver)**
+
+A type of driver in DPDK that continuously polls for events rather than relying on interrupts, often used for high-performance networking.
+
+**SoC (System on a Chip)**
+
+An integrated circuit that integrates all components of a computer or other electronic system into a single chip.
+
+**UIO (Userspace I/O)**
+
+A Linux kernel module that enables user-space applications to access hardware devices directly.
+
+**VFIO (Virtual Function I/O)**
+
+A kernel driver that allows a virtual machine to access physical devices directly, used in DPDK for device assignment.
+
+**VFIO Platform**
+
+A framework in Linux that allows exposing direct device access to userspace, in a secure, IOMMU-protected way.
\ No newline at end of file
Signature · 1 line
2.41.0.windows.1
#21 lore raw

Re: [PATCH 6/6] Section 6: Glossary

Quoted 13 lines · David Young
---
 doc/guides/getting_started_guide/glossary.rst | 75 +++++++++++++++++++
 1 file changed, 75 insertions(+)
 create mode 100644 doc/guides/getting_started_guide/glossary.rst
doc/guides/getting_started_guide/glossary.rst new file +2 -0
new file mode 100644
index 0000000000..7fcfe16f38
@@ -0,0 +1,75 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2010-2025 Intel Corporation.

doc/guides/getting_started_guide/glossary.rst line 12

Quoted 10 lines
doc/guides/getting_started_guide/glossary.rst new file +10 -0
+
+Glossary
+========
+
+This glossary provides definitions for key terms and concepts used within DPDK. Understanding these terms will help in comprehending the functionality and architecture of DPDK.
+
+**BIOS (Basic Input/Output System)**
+
+The firmware used to perform hardware initialization during the booting process and to provide runtime services for operating systems and programs.
+

BIOS seems a little too generic for DPDK context, not sure.

Quoted 22 lines
doc/guides/getting_started_guide/glossary.rst new file +22 -0
+**Bifurcated Driver**
+
+A driver model that splits functionality between kernel and userspace, often used in high-performance networking.
+
+**Clang-LLVM**
+
+A compiler toolchain that includes the Clang C compiler and LLVM linker, used for building DPDK on Windows.
+
+**contigmem Module**
+
+A module in FreeBSD that provides physically contiguous memory allocation used by DPDK.
+
+**DMA (Direct Memory Access)**
+
+A feature that allows hardware devices to access the main system memory directly, without involving the CPU.
+
+**EAL (Environment Abstraction Layer)**
+
+The layer within DPDK that abstracts environmental specifics and provides a standard programming interface.
+
+**hugepages**
+

doc/guides/getting_started_guide/glossary.rst line 44

Quoted 10 lines
doc/guides/getting_started_guide/glossary.rst new file +10 -0
+Large memory pages used by the operating system to manage memory more efficiently, especially in high-performance applications like DPDK.
+
+**IOMMU (Input-Output Memory Management Unit)**
+
+A hardware component that translates device-visible virtual addresses to physical addresses, providing memory protection and isolation.
+
+**MinGW-w64 Toolchain**
+
+A development environment for creating Windows applications, used as an option for compiling DPDK on Windows.
+

"on Windows" vs "for Windows" ?

Quoted 6 lines
doc/guides/getting_started_guide/glossary.rst new file +6 -0
+**NIC (Network Interface Card)**
+
+A hardware component that connects a computer to a network.
+
+**nic_uio Module**
+

doc/guides/getting_started_guide/glossary.rst line 60

Quoted 10 lines
doc/guides/getting_started_guide/glossary.rst new file +10 -0
+A UIO driver for network devices in FreeBSD, used by DPDK.
+
+**NUMA (Non-Uniform Memory Access)**
+
+A computer memory design used in multiprocessing where the memory access time depends on the memory location relative to the processor.
+
+**PMD (POLL Mode Driver)**
+
+A type of driver in DPDK that continuously polls for events rather than relying on interrupts, often used for high-performance networking.
+

This is the only type of driver that DPDK has, and at this point term kind of tied to DPDK, in case above can be read as this is one of the driver types in DPDK.

doc/guides/getting_started_guide/glossary.rst line 72

Quoted 12 lines
doc/guides/getting_started_guide/glossary.rst new file +12 -0
+**SoC (System on a Chip)**
+
+An integrated circuit that integrates all components of a computer or other electronic system into a single chip.
+
+**UIO (Userspace I/O)**
+
+A Linux kernel module that enables user-space applications to access hardware devices directly.
+
+**VFIO (Virtual Function I/O)**
+
+A kernel driver that allows a virtual machine to access physical devices directly, used in DPDK for device assignment.
+

I am not sure if this is accurate, although it is not exactly wrong, vfio.ko is a kernel module implementation for below 'vfio platform', and allows "userspace applications (including virtual machine)" to access physical device. Enables DPDK to directly access to the physical devices.

To prevent duplication, perhaps easier to first describe the "VFIO Platform" and later describe vfio.ko as kernel module implementation for "VFIO Platform" used by DPDK?

doc/guides/getting_started_guide/glossary.rst line 75

Quoted 4 lines
doc/guides/getting_started_guide/glossary.rst new file +3 -0
+**VFIO Platform**
+
+A framework in Linux that allows exposing direct device access to userspace, in a secure, IOMMU-protected way.
\ No newline at end of file

What do you think to add 'RTE' too, it may confuse some newcomers?

#22 lore raw
In reply to David Young
Quoted 4 lines · David Young

The separate Getting Started Guides for Linux, FreeBSD, and Windows have been consolidated into a single, streamlined guide to simplify the user experience and facilitate easier maintenance.

seems like a good idea to me. i'm assuming that the existing content is just being re-organized. after the re-organization is complete i'll plan to bring some of the windows specific content up to date.

thanks for doing this.

#23 lore raw
In reply to David Young

Hello David,

Quoted 5 lines · David Young

The separate Getting Started Guides for Linux, FreeBSD, and Windows have been consolidated into a single, streamlined guide to simplify the user experience and facilitate easier maintenance.

Quoted 7 lines

David Young (6):
Section 1: Introduction
Section 2: Install and Build DPDK
Section 3: Setting up a System to Run DPDK Applications Section 4: Running Applications
Section 5: Appendix
Section 6: Glossary

From my understanding, existing copyright banners should be preserved by this reorganisation work.
Yet I noticed a few Copyright banners dated 2025, please double check and fix them.

Bruce, Thomas,
An open question, if new docs are created, who should this work be attributed to? the dpdk contributors?

Thanks.

Signature · 1 line
David Marchand
#24 lore raw
Quoted 22 lines · David Marchand

Hello David,

Quoted 5 lines · David Young

The separate Getting Started Guides for Linux, FreeBSD, and Windows have been consolidated into a single, streamlined guide to simplify the user experience and facilitate easier maintenance.

Quoted 7 lines

David Young (6):
Section 1: Introduction
Section 2: Install and Build DPDK
Section 3: Setting up a System to Run DPDK Applications Section 4: Running Applications
Section 5: Appendix
Section 6: Glossary

From my understanding, existing copyright banners should be preserved by this reorganisation work.
Yet I noticed a few Copyright banners dated 2025, please double check and fix them.

Quoted 4 lines

Bruce, Thomas,
An open question, if new docs are created, who should this work be attributed to? the dpdk contributors?

For this re-organisation, I expect the copyrights from the existing content be preserved - merging if so necessary, e.g. a page merged from two separate ones with differen copyright owners.

For brand new content, the way things look now, it's just likely to come from existing DPDK experts, so they will apply their usual attributions AFAIK.

/Bruce

#25 lore raw
In reply to David Young
Quoted 4 lines · David Young

The separate Getting Started Guides for Linux, FreeBSD, and Windows have been consolidated into a single, streamlined guide to simplify the user experience and facilitate easier maintenance.

Quoted 8 lines

David Young (6):
Section 1: Introduction
Section 2: Install and Build DPDK
Section 3: Setting up a System to Run DPDK Applications Section 4: Running Applications
Section 5: Appendix
Section 6: Glossary

Hi David,

New documentations are not in the toctree, so they are not accessible by the links in the left column.
Sphinx generates warning for this:
WARNING: document isn't included in any toctree

Also existing per platform documentation is not removed yet.

I assume both above done intentionally for the development phase of this documentation, but this is just a reminder in-case not.

And not all context seems moved from existing per platform getting started guides, is there are plan to keep them around for a while as reference, or move that context to other files?

Thanks,
ferruh

author
#26 lore raw

Thank you for reviewing the patches and for your feedback.

1. Regarding the toctree, I've added the new Getting Started Guide so that it's accessible via the links in the left column. I've tested this on my local version, and the warning should disappear once the patch is submitted.

2. As for the existing per-platform documentation, it has not been removed yet because I'm still in the process of developing the consolidated Getting Started Guide. The existing documentation will remain in place for the time being.

3. About the context not yet moved from the existing per-platform guides, I'm considering how best to integrate this information into the new guide. Bruce, do you have any thoughts on whether these should be kept around for reference or moved to other files?

I plan to send updated versions of all patches in this series at the same time, incorporating all the feedback received.

Thank you again for your time and input.

Thanks!
David Young
Professional Copywriter/Technical Writer
Young Copy
+1 (678) 500-9550
https://www.youngcopy.com

Quoted 38 lines · Ferruh Yigit
Quoted 1 line · David Young

The separate Getting Started Guides for Linux, FreeBSD, and Windows have

been

Quoted 1 line

consolidated into a single, streamlined guide to simplify the user

experience

Quoted 10 lines

and facilitate easier maintenance.

David Young (6):
Section 1: Introduction
Section 2: Install and Build DPDK
Section 3: Setting up a System to Run DPDK Applications Section 4: Running Applications
Section 5: Appendix
Section 6: Glossary

Hi David,

New documentations are not in the toctree, so they are not accessible by the links in the left column.
Sphinx generates warning for this:
WARNING: document isn't included in any toctree

Also existing per platform documentation is not removed yet.

I assume both above done intentionally for the development phase of this documentation, but this is just a reminder in-case not.

And not all context seems moved from existing per platform getting started guides, is there are plan to keep them around for a while as reference, or move that context to other files?

Thanks,
ferruh

#27 lore raw
In reply to Ferruh Yigit
Quoted 18 lines · Ferruh Yigit
Quoted 8 lines · David Young

The separate Getting Started Guides for Linux, FreeBSD, and Windows have been consolidated into a single, streamlined guide to simplify the user experience and facilitate easier maintenance.

David Young (6): Section 1: Introduction Section 2: Install and Build DPDK Section 3: Setting up a System to Run DPDK Applications Section 4:
Running Applications Section 5: Appendix Section 6: Glossary

Hi David,

New documentations are not in the toctree, so they are not accessible by the links in the left column. Sphinx generates warning for this:
WARNING: document isn't included in any toctree

Also existing per platform documentation is not removed yet.

Quoted 8 lines

I assume both above done intentionally for the development phase of this documentation, but this is just a reminder in-case not.

And not all context seems moved from existing per platform getting started guides, is there are plan to keep them around for a while as reference, or move that context to other files?

Part of the work in consolidating these docs is to remove any unnecessary details. After all, these are Getting Started Guides, which should contain only the minimal info for getting started and not much else. The more content we have, the harder the docs become to follow. Some extra content is moved to the appendicies, but I, for one, think we should keep these docs as slim as possible. For example, we should document one way to do things in the main doc. Any alternative methods should be documented via links elsewhere.

For content that is not transferred over as part of this patchset, if there are any concerns about omissions, I think we should discuss them on a case by case basis. Just because something was in the original docs does not mean it needs to go in the new one. :-)

/Bruce