Skip to contentSkip to conversation

igb_uio: add compile instructions

PATCH Superseded Anatoly Burakov 4 participants 9 messages Nov 20, 2020 – Feb 5, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 igb_uio: add compile instructions

Currently, compilation instructions for igb_uio are missing. Add them, as well as a top-level INSTALL file referring users to per-OS subdirectories.

---
 INSTALL          |  5 +++++
 linux/README.rst | 45 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+)
 create mode 100644 INSTALL
 create mode 100644 linux/README.rst
INSTALL new file +5 -0
new file mode 100644
index 0000000..f9ef15c
@@ -0,0 +1,5 @@
+Installing DPDK Kernel Drivers
+==============================
+
+For instructions on how to install kernel drivers for each OS, please refer to
+the respective subdirectories' ``README`` files.
linux/README.rst new file +45 -0

45 lines not on this page · raw message

Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Anatoly Burakov

Currently, compilation instructions for igb_uio are missing. Add them, as well as a top-level INSTALL file referring users to per-OS subdirectories.

patch title should start with 'linux/igb_uio:'

Quoted 2 lines

Thanks for doc update.

<...>

Quoted 5 lines
linux/README.rst new file +4 -0
@@ -0,0 +1,45 @@
+Building Linux Drivers
+======================
+
+Prerequisites

linux/README.rst line 14

Quoted 10 lines
linux/README.rst new file +10 -0
+-------------
+
+The system must have relevant Linux kernel headers or source code installed.
+
+Build
+-----
+
+To build ``igb_uio`` driver, simple run ``make`` command inside the
+``linux/igb_uio`` directry:
+

Just detail but since we are in the 'linux' folder while reading this file, I wonder if the reference path should be ``igb_uio`` instead of ``linux/igb_uio``? Both are OK I think.

#2 lore raw

PATCH v2 1/1 linux/igb_uio: add compile instructions

In reply to Anatoly Burakov

Currently, compilation instructions for igb_uio are missing. Add them, as well as a top-level INSTALL file referring users to per-OS subdirectories.

---
 INSTALL          |  5 +++++
 linux/README.rst | 45 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+)
 create mode 100644 INSTALL
 create mode 100644 linux/README.rst
INSTALL new file +5 -0
new file mode 100644
index 0000000..f9ef15c
@@ -0,0 +1,5 @@
+Installing DPDK Kernel Drivers
+==============================
+
+For instructions on how to install kernel drivers for each OS, please refer to
+the respective subdirectories' ``README`` files.
linux/README.rst new file +45 -0

45 lines not on this page · raw message

Signature · 1 line
2.17.1
Reviewed-by on v2 1/1
#3 lore raw

Re: [dpdk-dev] [PATCH DPDK-KMODS v2] linux/igb_uio: add compile instructions

Quoted 7 lines · Anatoly Burakov

Currently, compilation instructions for igb_uio are missing. Add them, as well as a top-level INSTALL file referring users to per-OS subdirectories.

Quoted 71 lines
---
 INSTALL          |  5 +++++
 linux/README.rst | 45 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+)
 create mode 100644 INSTALL
 create mode 100644 linux/README.rst
INSTALL new file +5 -0
new file mode 100644
index 0000000..f9ef15c
@@ -0,0 +1,5 @@
+Installing DPDK Kernel Drivers
+==============================
+
+For instructions on how to install kernel drivers for each OS, please refer to
+the respective subdirectories' ``README`` files.
linux/README.rst new file +45 -1
new file mode 100644
index 0000000..11dd501
@@ -0,0 +1,45 @@
+Building Linux Drivers
+======================
+
+Prerequisites
+-------------
+
+The system must have relevant Linux kernel headers or source code installed.
+
+Build
+-----
+
+To build ``igb_uio`` driver, simple run ``make`` command inside the
+``igb_uio`` directory:
+
+.. code-block:: console
+
+    cd igb_uio
+    make
+
+If compiling against a specific kernel source directory is required, it is
+possible to specify the kernel source directory using the ``KSRC`` variable:
+
+.. code-block:: console
+
+    make KSRC=/path/to/custom/kernel/source
+
+Load the driver
+---------------
+
+The ``igb_uio`` driver requires the UIO driver to be loaded beforehand (these
+commands are to be run as ``root`` user):
+
+.. code-block:: console
+
+    modprobe uio
+    insmod igb_uio.ko
+
+Clean the build directory
+-------------------------
+
+To clean the build directory, the following command can be run:
+
+.. code-block:: console
+
+    make clean
--

2.17.1

#4 lore raw

Re: [dpdk-dev] [PATCH DPDK-KMODS v2] linux/igb_uio: add compile instructions

Quoted 12 lines · Ajit Khaparde
Quoted 7 lines · Anatoly Burakov

Currently, compilation instructions for igb_uio are missing. Add them, as well as a top-level INSTALL file referring users to per-OS subdirectories.

Is there anything preventing this patch from getting merged?

Signature · 2 lines
Thanks,
Anatoly
#5 lore raw

Re: [dpdk-dev] [PATCH DPDK-KMODS v2] linux/igb_uio: add compile instructions

In reply to Anatoly Burakov

About the title, I think "build" would be more generic than "compile".

24/11/2020 14:26, Anatoly Burakov:

Quoted 9 lines

Currently, compilation instructions for igb_uio are missing. Add them, as well as a top-level INSTALL file referring users to per-OS subdirectories.

---
+++ b/INSTALL

INSTALL line 5

Quoted 5 lines
INSTALL new file +5 -0
@@ -0,0 +1,5 @@
+Installing DPDK Kernel Drivers
+==============================
+
+For instructions on how to install kernel drivers for each OS, please refer to
+the respective subdirectories' ``README`` files.

I would suggest "README file in the respective sub-directory".

linux/README.rst line 2

Quoted 4 lines

+++ b/linux/README.rst

linux/README.rst new file +2 -0
@@ -0,0 +1,45 @@
+Building Linux Drivers
+======================

What about "Building Out-of-Tree Kernel Drivers for Linux" ?

linux/README.rst line 10

Quoted 8 lines
linux/README.rst new file +8 -0
+
+Prerequisites
+-------------
+
+The system must have relevant Linux kernel headers or source code installed.
+
+Build
+-----

We are supposed to insert 2 blank lines before titles.

Review line 12

Quoted 2 lines
(quoted diff) +2 -0
+
+To build ``igb_uio`` driver, simple run ``make`` command inside the

s/simple/simply/

linux/README.rst line 18

Quoted 6 lines
linux/README.rst new file +6 -0
+``igb_uio`` directory:
+
+.. code-block:: console
+
+    cd igb_uio
+    make

It looks nicer if indented with 3 spaces, aligning with ".. "

Review line 20

Quoted 2 lines
(quoted diff) +2 -0
+
+If compiling against a specific kernel source directory is required, it is

Please wrap the line after the comma.

linux/README.rst line 21

Quoted 1 line
linux/README.rst new file +1 -0
+possible to specify the kernel source directory using the ``KSRC`` variable:

If it make line too long here, you can wrap before using. The idea is to have one idea per line, so wrapping is more logic.

linux/README.rst line 28

Quoted 7 lines
linux/README.rst new file +7 -0
+
+.. code-block:: console
+
+    make KSRC=/path/to/custom/kernel/source
+
+Load the driver
+---------------

Previous title was just "Build". So this one can be just "Load".

linux/README.rst line 31

Quoted 3 lines
linux/README.rst new file +3 -0
+
+The ``igb_uio`` driver requires the UIO driver to be loaded beforehand (these
+commands are to be run as ``root`` user):

Wrapping should isolate the full parenthesis on the second line.

linux/README.rst line 36

Quoted 5 lines
linux/README.rst new file +5 -0
+
+.. code-block:: console
+
+    modprobe uio
+    insmod igb_uio.ko

Note: uio could be built-in.

Quoted 9 lines
linux/README.rst new file +9 -0
+
+Clean the build directory
+-------------------------
+
+To clean the build directory, the following command can be run:
+
+.. code-block:: console
+
+    make clean
#6 lore raw

Re: [dpdk-dev] [PATCH DPDK-KMODS v2] linux/igb_uio: add compile instructions

Quoted 87 lines · Thomas Monjalon

About the title, I think "build" would be more generic than "compile".

24/11/2020 14:26, Anatoly Burakov:

Quoted 9 lines

Currently, compilation instructions for igb_uio are missing. Add them, as well as a top-level INSTALL file referring users to per-OS subdirectories.

---
+++ b/INSTALL

INSTALL line 5

Quoted 5 lines
INSTALL new file +5 -0
@@ -0,0 +1,5 @@
+Installing DPDK Kernel Drivers
+==============================
+
+For instructions on how to install kernel drivers for each OS, please refer to
+the respective subdirectories' ``README`` files.

I would suggest "README file in the respective sub-directory".

linux/README.rst line 2

Quoted 4 lines

+++ b/linux/README.rst

linux/README.rst new file +2 -0
@@ -0,0 +1,45 @@
+Building Linux Drivers
+======================

What about "Building Out-of-Tree Kernel Drivers for Linux" ?

linux/README.rst line 10

Quoted 8 lines
linux/README.rst new file +8 -0
+
+Prerequisites
+-------------
+
+The system must have relevant Linux kernel headers or source code installed.
+
+Build
+-----

We are supposed to insert 2 blank lines before titles.

Review line 12

Quoted 2 lines
(quoted diff) +2 -0
+
+To build ``igb_uio`` driver, simple run ``make`` command inside the

s/simple/simply/

linux/README.rst line 18

Quoted 6 lines
linux/README.rst new file +6 -0
+``igb_uio`` directory:
+
+.. code-block:: console
+
+    cd igb_uio
+    make

It looks nicer if indented with 3 spaces, aligning with ".. "

Review line 20

Quoted 2 lines
(quoted diff) +2 -0
+
+If compiling against a specific kernel source directory is required, it is

Please wrap the line after the comma.

linux/README.rst line 21

Quoted 1 line
linux/README.rst new file +1 -0
+possible to specify the kernel source directory using the ``KSRC`` variable:

If it make line too long here, you can wrap before using. The idea is to have one idea per line, so wrapping is more logic.

linux/README.rst line 28

Quoted 7 lines
linux/README.rst new file +7 -0
+
+.. code-block:: console
+
+    make KSRC=/path/to/custom/kernel/source
+
+Load the driver
+---------------

Previous title was just "Build". So this one can be just "Load".

linux/README.rst line 31

Quoted 3 lines
linux/README.rst new file +3 -0
+
+The ``igb_uio`` driver requires the UIO driver to be loaded beforehand (these
+commands are to be run as ``root`` user):

Wrapping should isolate the full parenthesis on the second line.

linux/README.rst line 36

Quoted 5 lines
linux/README.rst new file +5 -0
+
+.. code-block:: console
+
+    modprobe uio
+    insmod igb_uio.ko

Note: uio could be built-in.

Quoted 12 lines

linux/README.rst line 45

Quoted 9 lines
linux/README.rst new file +9 -0
+
+Clean the build directory
+-------------------------
+
+To clean the build directory, the following command can be run:
+
+.. code-block:: console
+
+    make clean

Thanks for your review, Thomas, i'll submit a new version addressing the feedback!

Signature · 2 lines
Thanks,
Anatoly
#7 lore raw

Re: [dpdk-dev] [PATCH DPDK-KMODS v2] linux/igb_uio: add compile instructions

Hello

15/02/2021 13:00, Burakov, Anatoly:

Quoted 2 lines

Thanks for your review, Thomas, i'll submit a new version addressing the feedback!

It seems this patch was forgotten.
Please could you update?

#8 lore raw

PATCH v3 1/1 linux/igb_uio: add build instructions

From: Anatoly Burakov <[email protected]>

Currently, compilation instructions for igb_uio are missing. Add them, as well as referring users to per-OS subdirectories.

---
v3: improvements suggested one year ago

No need to wait one more year, this patch is directly applied.

---
 README           |  3 +++
 linux/README.rst | 58 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)
 create mode 100644 linux/README.rst
README +3 -0
index e71dbba..c514cf0 100644
@@ -8,3 +8,6 @@ Now the preference is to contribute kernel modules to the upstream project
 if possible, otherwise to host kernel code in dpdk-kmods.git.
 
 The license can be BSD-3-Clause or GPL-2.0.
+
+For specific instructions per OS,
+please refer to the README file in the respective sub-directory.
linux/README.rst new file +58 -0

58 lines not on this page · raw message

Signature · 1 line
2.39.1