Skip to contentSkip to conversation

config: disable all kmods by default from v20.02

PATCH Superseded [email protected] 8 participants 17 messages Dec 12, 2019 – Feb 12, 2020 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config: disable all kmods by default from v20.02

From: Jerin Jacob <[email protected]>

Based on the techboard meeting held on 2019-11-06, It's been decided to disable all kmods by default from v20.02.

http://mails.dpdk.org/archives/dev/2019-November/151763.html

---
 config/common_linux | 2 --
 1 file changed, 2 deletions(-)
config/common_linux +0 -2
index c5cf3d662..583efadc7 100644
@@ -8,9 +8,7 @@ CONFIG_RTE_EXEC_ENV_LINUX=y
 CONFIG_RTE_EXEC_ENV_LINUXAPP=y
 
 CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y
-CONFIG_RTE_EAL_IGB_UIO=y
 CONFIG_RTE_EAL_VFIO=y
-CONFIG_RTE_KNI_KMOD=y
 CONFIG_RTE_LIBRTE_KNI=y
 CONFIG_RTE_LIBRTE_PMD_KNI=y
 CONFIG_RTE_LIBRTE_VHOST=y
Signature · 1 line
2.24.0
#1 lore raw

Ping.

Quoted 30 lines · On Thu, Dec 12, 2019 at 6:42 PM <[email protected]> wrote:

From: Jerin Jacob <[email protected]>

Based on the techboard meeting held on 2019-11-06, It's been decided to disable all kmods by default from v20.02.

http://mails.dpdk.org/archives/dev/2019-November/151763.html

---
 config/common_linux | 2 --
 1 file changed, 2 deletions(-)
config/common_linux +0 -3
index c5cf3d662..583efadc7 100644
@@ -8,9 +8,7 @@ CONFIG_RTE_EXEC_ENV_LINUX=y
 CONFIG_RTE_EXEC_ENV_LINUXAPP=y
 
 CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y
-CONFIG_RTE_EAL_IGB_UIO=y
 CONFIG_RTE_EAL_VFIO=y
-CONFIG_RTE_KNI_KMOD=y
 CONFIG_RTE_LIBRTE_KNI=y
 CONFIG_RTE_LIBRTE_PMD_KNI=y
 CONFIG_RTE_LIBRTE_VHOST=y
--

2.24.0

#2 lore raw
Quoted 23 lines · Jerin Jacob

Ping.

Quoted 20 lines · On Thu, Dec 12, 2019 at 6:42 PM <[email protected]> wrote:

From: Jerin Jacob <[email protected]>

Based on the techboard meeting held on 2019-11-06, It's been decided to disable all kmods by default from v20.02.

http://mails.dpdk.org/archives/dev/2019-November/151763.html

---
 config/common_linux | 2 --
 1 file changed, 2 deletions(-)
config/common_linux +0 -0
index c5cf3d662..583efadc7 100644
@@ -8,9 +8,7 @@ CONFIG_RTE_EXEC_ENV_LINUX=y
 CONFIG_RTE_EXEC_ENV_LINUXAPP=y
 
Quoted 11 lines
Quoted 10 lines
config/common_linux +0 -3
 CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y
-CONFIG_RTE_EAL_IGB_UIO=y
 CONFIG_RTE_EAL_VFIO=y
-CONFIG_RTE_KNI_KMOD=y
 CONFIG_RTE_LIBRTE_KNI=y
 CONFIG_RTE_LIBRTE_PMD_KNI=y
 CONFIG_RTE_LIBRTE_VHOST=y
--

2.24.0

Looks good for make build system, but what about Meson? as per meson_options.txt, isn't it enabled by default?

$ grep -rn enable_kmods meson_options.txt
7:option('enable_kmods', type: 'boolean', value: true,

Thanks,
Maxime

#3 lore raw
Quoted 39 lines · Maxime Coquelin
Quoted 23 lines · Jerin Jacob

Ping.

Quoted 20 lines · On Thu, Dec 12, 2019 at 6:42 PM <[email protected]> wrote:

From: Jerin Jacob <[email protected]>

Based on the techboard meeting held on 2019-11-06, It's been decided to disable all kmods by default from v20.02.

http://mails.dpdk.org/archives/dev/2019-November/151763.html

---
 config/common_linux | 2 --
 1 file changed, 2 deletions(-)
config/common_linux +0 -0
index c5cf3d662..583efadc7 100644
@@ -8,9 +8,7 @@ CONFIG_RTE_EXEC_ENV_LINUX=y
 CONFIG_RTE_EXEC_ENV_LINUXAPP=y
 
Quoted 11 lines
Quoted 10 lines
config/common_linux +0 -3
 CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y
-CONFIG_RTE_EAL_IGB_UIO=y
 CONFIG_RTE_EAL_VFIO=y
-CONFIG_RTE_KNI_KMOD=y
 CONFIG_RTE_LIBRTE_KNI=y
 CONFIG_RTE_LIBRTE_PMD_KNI=y
 CONFIG_RTE_LIBRTE_VHOST=y
--

2.24.0

Quoted 4 lines

Looks good for make build system, but what about Meson? as per meson_options.txt, isn't it enabled by default?

$ grep -rn enable_kmods meson_options.txt
7:option('enable_kmods', type: 'boolean', value: true,

+ Bruce,

Since meson autodetect the presence of Linux kernel dependency for the kmod build,
I thought of keeping as it is as there is no harm. I am fine with either way, let me the
know the feedback, I will send the v2 based on the comment.

Quoted 4 lines

Thanks,
Maxime

#4 lore raw

<snip>

Quoted 25 lines
Quoted 25 lines · Jerin Jacob
Quoted 23 lines

Ping.

Quoted 20 lines · On Thu, Dec 12, 2019 at 6:42 PM <[email protected]> wrote:

From: Jerin Jacob <[email protected]>

Based on the techboard meeting held on 2019-11-06, It's been decided to disable all kmods by default from v20.02.

http://mails.dpdk.org/archives/dev/2019-November/151763.html

---
 config/common_linux | 2 --
 1 file changed, 2 deletions(-)
config/common_linux index renamed from config/common_linux +0 -0

c5cf3d662..583efadc7 100644

config/common_linux +0 -0
@@ -8,9 +8,7 @@ CONFIG_RTE_EXEC_ENV_LINUX=y

CONFIG_RTE_EXEC_ENV_LINUXAPP=y

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

config/common_linux CONFIG_RTE_EXEC_ENV_LINUX=y · line 13

Quoted 4 lines

CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y

config/common_linux +0 -2
-CONFIG_RTE_EAL_IGB_UIO=y
 CONFIG_RTE_EAL_VFIO=y
-CONFIG_RTE_KNI_KMOD=y

Suggest to keep the lines, but set them to 'n'. It will be easier to enable. Does this require update to release notes?

Quoted 25 lines
Quoted 8 lines
Quoted 7 lines
Quoted 6 lines

CONFIG_RTE_LIBRTE_KNI=y
CONFIG_RTE_LIBRTE_PMD_KNI=y
CONFIG_RTE_LIBRTE_VHOST=y
--
2.24.0

Quoted 4 lines

Looks good for make build system, but what about Meson? as per meson_options.txt, isn't it enabled by default?

$ grep -rn enable_kmods meson_options.txt 7:option('enable_kmods',
type: 'boolean', value: true,

+ Bruce,

Since meson autodetect the presence of Linux kernel dependency for the kmod build, I thought of keeping as it is as there is no harm. I am fine with either way, let me the know the feedback, I will send the v2 based on the comment.

Quoted 4 lines

Thanks,
Maxime

#5 lore raw
Quoted 28 lines · Honnappa Nagarahalli

<snip>

Quoted 25 lines
Quoted 25 lines · Jerin Jacob
Quoted 23 lines

Ping.

Quoted 20 lines · On Thu, Dec 12, 2019 at 6:42 PM <[email protected]> wrote:

From: Jerin Jacob <[email protected]>

Based on the techboard meeting held on 2019-11-06, It's been decided to disable all kmods by default from v20.02.

http://mails.dpdk.org/archives/dev/2019-November/151763.html

---
 config/common_linux | 2 --
 1 file changed, 2 deletions(-)
config/common_linux index renamed from config/common_linux +0 -0

c5cf3d662..583efadc7 100644

config/common_linux +0 -0
@@ -8,9 +8,7 @@ CONFIG_RTE_EXEC_ENV_LINUX=y

CONFIG_RTE_EXEC_ENV_LINUXAPP=y

Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

config/common_linux CONFIG_RTE_EXEC_ENV_LINUX=y · line 13

Quoted 4 lines

CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y

config/common_linux +0 -2
-CONFIG_RTE_EAL_IGB_UIO=y
 CONFIG_RTE_EAL_VFIO=y
-CONFIG_RTE_KNI_KMOD=y

Suggest to keep the lines, but set them to 'n'. It will be easier to enable.

In config/common_base it is set as =n. it can be enabled there just like other config.
I just did this way to have symmetry with other configs. Thoughts?

Quoted 1 line

Does this require update to release notes?

I will send the next version with updating the release notes if there is no objection.

Quoted 26 lines
Quoted 26 lines
Quoted 9 lines
Quoted 8 lines
Quoted 7 lines

CONFIG_RTE_LIBRTE_KNI=y
CONFIG_RTE_LIBRTE_PMD_KNI=y
CONFIG_RTE_LIBRTE_VHOST=y
--
2.24.0

Quoted 4 lines

Looks good for make build system, but what about Meson? as per meson_options.txt, isn't it enabled by default?

$ grep -rn enable_kmods meson_options.txt 7:option('enable_kmods',
type: 'boolean', value: true,

+ Bruce,

Since meson autodetect the presence of Linux kernel dependency for the kmod build, I thought of keeping as it is as there is no harm. I am fine with either way, let me the know the feedback, I will send the v2 based on the comment.

Quoted 4 lines

Thanks,
Maxime

#6 lore raw
Quoted 33 lines
Quoted 27 lines

<snip>

Quoted 25 lines
Quoted 25 lines · Jerin Jacob
Quoted 23 lines

Ping.

Quoted 20 lines · On Thu, Dec 12, 2019 at 6:42 PM <[email protected]> wrote:

From: Jerin Jacob <[email protected]>

Based on the techboard meeting held on 2019-11-06, It's been decided to disable all kmods by default from v20.02.

http://mails.dpdk.org/archives/dev/2019-November/151763.html

---
 config/common_linux | 2 --
 1 file changed, 2 deletions(-)
config/common_linux index renamed from config/common_linux +0 -0

c5cf3d662..583efadc7 100644

config/common_linux +0 -0
@@ -8,9 +8,7 @@ CONFIG_RTE_EXEC_ENV_LINUX=y

CONFIG_RTE_EXEC_ENV_LINUXAPP=y

Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

config/common_linux CONFIG_RTE_EXEC_ENV_LINUX=y · line 13

Quoted 4 lines

CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y

config/common_linux +0 -2
-CONFIG_RTE_EAL_IGB_UIO=y
 CONFIG_RTE_EAL_VFIO=y
-CONFIG_RTE_KNI_KMOD=y

Suggest to keep the lines, but set them to 'n'. It will be easier to enable.

Quoted 4 lines

In config/common_base it is set as =n. it can be enabled there just like other config.
I just did this way to have symmetry with other configs. Thoughts?

Sounds good.
CONFIG_RTE_LIBRTE_PMD_IFPGA_RAWDEV=n can also be removed as it is set in common_base. CONFIG_RTE_LIBRTE_VHOST_POSTCOPY is set to 'n' in common_linux, but it is not present in common_base.

Quoted 34 lines
Quoted 3 lines

Does this require update to release notes?

I will send the next version with updating the release notes if there is no objection.

Quoted 14 lines
Quoted 14 lines
Quoted 13 lines
Quoted 8 lines
Quoted 7 lines

CONFIG_RTE_LIBRTE_KNI=y
CONFIG_RTE_LIBRTE_PMD_KNI=y
CONFIG_RTE_LIBRTE_VHOST=y
--
2.24.0

Looks good for make build system, but what about Meson? as per meson_options.txt, isn't it enabled by default?

$ grep -rn enable_kmods meson_options.txt 7:option('enable_kmods',
type: 'boolean', value: true,
Quoted 5 lines
Quoted 5 lines

+ Bruce,

Since meson autodetect the presence of Linux kernel dependency for the kmod build, I thought of keeping as it is as there is no harm. I am fine with either way, let me the know the feedback, I will send the v2

based on the comment.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Thanks,
Maxime

#7 lore raw

17/01/2020 16:48, Honnappa Nagarahalli:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines · Jerin Jacob
Quoted 6 lines · On Thu, Dec 12, 2019 at 6:42 PM <[email protected]> wrote:
Quoted 5 lines
config/common_linux +0 -0
@@ -8,9 +8,7 @@ CONFIG_RTE_EXEC_ENV_LINUX=y

CONFIG_RTE_EXEC_ENV_LINUXAPP=y

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

config/common_linux

Quoted 4 lines

CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y

config/common_linux +0 -2
-CONFIG_RTE_EAL_IGB_UIO=y
 CONFIG_RTE_EAL_VFIO=y
-CONFIG_RTE_KNI_KMOD=y

Suggest to keep the lines, but set them to 'n'. It will be easier to enable.

Configs should be enabled in the generated .config, not in the versioned template.

Quoted 7 lines
Quoted 4 lines

In config/common_base it is set as =n. it can be enabled there just like other config.
I just did this way to have symmetry with other configs. Thoughts?

Sounds good.
CONFIG_RTE_LIBRTE_PMD_IFPGA_RAWDEV=n can also be removed as it is set in common_base. CONFIG_RTE_LIBRTE_VHOST_POSTCOPY is set to 'n' in common_linux, but it is not present in common_base.

Good catch.
All options should be in common_base.

Acked-by Ferruh Yigit
#8 lore raw
In reply to Jerin Jacob
Quoted 46 lines · Jerin Jacob
Quoted 39 lines · Maxime Coquelin
Quoted 23 lines · Jerin Jacob

Ping.

Quoted 20 lines · On Thu, Dec 12, 2019 at 6:42 PM <[email protected]> wrote:

From: Jerin Jacob <[email protected]>

Based on the techboard meeting held on 2019-11-06, It's been decided to disable all kmods by default from v20.02.

http://mails.dpdk.org/archives/dev/2019-November/151763.html

---
 config/common_linux | 2 --
 1 file changed, 2 deletions(-)
config/common_linux +0 -0
index c5cf3d662..583efadc7 100644
@@ -8,9 +8,7 @@ CONFIG_RTE_EXEC_ENV_LINUX=y
 CONFIG_RTE_EXEC_ENV_LINUXAPP=y
 
Quoted 11 lines
Quoted 10 lines
config/common_linux +0 -3
 CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y
-CONFIG_RTE_EAL_IGB_UIO=y
 CONFIG_RTE_EAL_VFIO=y
-CONFIG_RTE_KNI_KMOD=y
 CONFIG_RTE_LIBRTE_KNI=y
 CONFIG_RTE_LIBRTE_PMD_KNI=y
 CONFIG_RTE_LIBRTE_VHOST=y
--

2.24.0

Quoted 4 lines

Looks good for make build system, but what about Meson? as per meson_options.txt, isn't it enabled by default?

$ grep -rn enable_kmods meson_options.txt
7:option('enable_kmods', type: 'boolean', value: true,
Quoted 7 lines

+ Bruce,

Since meson autodetect the presence of Linux kernel dependency for the kmod build,
I thought of keeping as it is as there is no harm. I am fine with either way, let me the
know the feedback, I will send the v2 based on the comment.

Actually, it would defeat the main reason I pushed for the kmods to be disabled by default. Indeed, even if the kernel dependencies are installed, build can break if internal kernel API changes, e.g.:

commit c128a4e6317d49362e2158edc29887c844067c65

Author: David Zeng <[email protected]>
Date:   Sat Dec 22 00:27:33 2018 +0800

kni: fix build on RHEL8 for arm and Power9

[ upstream commit 3d5501d568aacbcf71832691278f5656d3a9b649 ]

#9 lore raw
Quoted 65 lines · Maxime Coquelin
Quoted 46 lines · Jerin Jacob
Quoted 39 lines · Maxime Coquelin
Quoted 23 lines · Jerin Jacob

Ping.

Quoted 20 lines · On Thu, Dec 12, 2019 at 6:42 PM <[email protected]> wrote:

From: Jerin Jacob <[email protected]>

Based on the techboard meeting held on 2019-11-06, It's been decided to disable all kmods by default from v20.02.

http://mails.dpdk.org/archives/dev/2019-November/151763.html

---
 config/common_linux | 2 --
 1 file changed, 2 deletions(-)
config/common_linux +0 -0
index c5cf3d662..583efadc7 100644
@@ -8,9 +8,7 @@ CONFIG_RTE_EXEC_ENV_LINUX=y
 CONFIG_RTE_EXEC_ENV_LINUXAPP=y
 
Quoted 11 lines
Quoted 10 lines
config/common_linux +0 -3
 CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y
-CONFIG_RTE_EAL_IGB_UIO=y
 CONFIG_RTE_EAL_VFIO=y
-CONFIG_RTE_KNI_KMOD=y
 CONFIG_RTE_LIBRTE_KNI=y
 CONFIG_RTE_LIBRTE_PMD_KNI=y
 CONFIG_RTE_LIBRTE_VHOST=y
--

2.24.0

Quoted 4 lines

Looks good for make build system, but what about Meson? as per meson_options.txt, isn't it enabled by default?

$ grep -rn enable_kmods meson_options.txt
7:option('enable_kmods', type: 'boolean', value: true,
Quoted 7 lines

+ Bruce,

Since meson autodetect the presence of Linux kernel dependency for the kmod build,
I thought of keeping as it is as there is no harm. I am fine with either way, let me the
know the feedback, I will send the v2 based on the comment.

Actually, it would defeat the main reason I pushed for the kmods to be disabled by default. Indeed, even if the kernel dependencies are installed, build can break if internal kernel API changes, e.g.:

commit c128a4e6317d49362e2158edc29887c844067c65

Author: David Zeng <[email protected]>
Date:   Sat Dec 22 00:27:33 2018 +0800
Quoted 7 lines

kni: fix build on RHEL8 for arm and Power9

[ upstream commit 3d5501d568aacbcf71832691278f5656d3a9b649 ]

That's a good point. We take these types of patches into stable, but there would be a few months delay between a new kernel causing breakage and the time when stable releases containing the fix are released. Disabling would at least avoid non-kmod interested user being impacted by default.

#10 lore raw
In reply to Maxime Coquelin
Quoted 58 lines · Maxime Coquelin
Quoted 46 lines · Jerin Jacob
Quoted 39 lines · Maxime Coquelin
Quoted 23 lines · Jerin Jacob

Ping.

Quoted 20 lines · On Thu, Dec 12, 2019 at 6:42 PM <[email protected]> wrote:

From: Jerin Jacob <[email protected]>

Based on the techboard meeting held on 2019-11-06, It's been decided to disable all kmods by default from v20.02.

http://mails.dpdk.org/archives/dev/2019-November/151763.html

---
 config/common_linux | 2 --
 1 file changed, 2 deletions(-)
config/common_linux +0 -0
index c5cf3d662..583efadc7 100644
@@ -8,9 +8,7 @@ CONFIG_RTE_EXEC_ENV_LINUX=y
 CONFIG_RTE_EXEC_ENV_LINUXAPP=y
 
Quoted 11 lines
Quoted 10 lines
config/common_linux +0 -3
 CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y
-CONFIG_RTE_EAL_IGB_UIO=y
 CONFIG_RTE_EAL_VFIO=y
-CONFIG_RTE_KNI_KMOD=y
 CONFIG_RTE_LIBRTE_KNI=y
 CONFIG_RTE_LIBRTE_PMD_KNI=y
 CONFIG_RTE_LIBRTE_VHOST=y
--

2.24.0

Quoted 4 lines

Looks good for make build system, but what about Meson? as per meson_options.txt, isn't it enabled by default?

$ grep -rn enable_kmods meson_options.txt
7:option('enable_kmods', type: 'boolean', value: true,
Quoted 7 lines

+ Bruce,

Since meson autodetect the presence of Linux kernel dependency for the kmod build,
I thought of keeping as it is as there is no harm. I am fine with either way, let me the
know the feedback, I will send the v2 based on the comment.

Quoted 3 lines

Actually, it would defeat the main reason I pushed for the kmods to be disabled by default. Indeed, even if the kernel dependencies are installed, build can break if internal kernel API changes, e.g.:

Agree. I will send the next version with disabling kmod in meson by default.

Quoted 11 lines

commit c128a4e6317d49362e2158edc29887c844067c65

Author: David Zeng <[email protected]>
Date:   Sat Dec 22 00:27:33 2018 +0800

kni: fix build on RHEL8 for arm and Power9

[ upstream commit 3d5501d568aacbcf71832691278f5656d3a9b649 ]

#11 lore raw

PATCH v2 1/1 config: disable all kmods by default from v20.02

In reply to [email protected]

From: Jerin Jacob <[email protected]>

Based on the techboard meeting held on 2019-11-06, It's been decided to disable all kmods by default from v20.02.

http://mails.dpdk.org/archives/dev/2019-November/151763.html

---
v2:
- Updated meson config file to disable the kmods by default(Maxime)
- Updated the release notes(Honnappa)

I am not sure, in which section, we need to update the release notes for this specific case.I have updated on the "New Features" section. Thoughts ?

 config/common_linux                    | 2 --
 doc/guides/rel_notes/release_20_02.rst | 5 +++++
 meson_options.txt                      | 2 +-
 3 files changed, 6 insertions(+), 3 deletions(-)
config/common_linux +0 -2
index c5cf3d662..583efadc7 100644
@@ -8,9 +8,7 @@ CONFIG_RTE_EXEC_ENV_LINUX=y
 CONFIG_RTE_EXEC_ENV_LINUXAPP=y
 
 CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y
-CONFIG_RTE_EAL_IGB_UIO=y
 CONFIG_RTE_EAL_VFIO=y
-CONFIG_RTE_KNI_KMOD=y
 CONFIG_RTE_LIBRTE_KNI=y
 CONFIG_RTE_LIBRTE_PMD_KNI=y
 CONFIG_RTE_LIBRTE_VHOST=y
doc/guides/rel_notes/release_20_02.rst +5 -0
index 9cc257168..afd645e7a 100644
@@ -61,6 +61,11 @@ New Features
   A new API has been added to wait for a memory location to be updated with a
   16-bit, 32-bit, 64-bit value.
 
+* **Disabled all the Linux kernel modules build by default.**
+
+  In order to remove the build time dependency with Linux kernel,
+  The techboard decided to disable all the kernel modules build by
+  default from v20.02 version.
 
 Removed Items
 -------------
meson_options.txt +1 -1
index bc369d06c..53dfe13c3 100644
@@ -6,7 +6,7 @@ option('drivers_install_subdir', type: 'string', value: 'dpdk/pmds-<VERSION>',
 	description: 'Subdirectory of libdir where to install PMDs. Defaults to using a versioned subdirectory.')
 option('enable_docs', type: 'boolean', value: false,
 	description: 'build documentation')
-option('enable_kmods', type: 'boolean', value: true,
+option('enable_kmods', type: 'boolean', value: false,
 	description: 'build kernel modules')
 option('examples', type: 'string', value: '',
 	description: 'Comma-separated list of examples to build by default')
Signature · 1 line
2.24.1
#12 lore raw

17/01/2020 20:14, [email protected]:

Quoted 8 lines

From: Jerin Jacob <[email protected]>

Based on the techboard meeting held on 2019-11-06, It's been decided to disable all kmods by default from v20.02.

http://mails.dpdk.org/archives/dev/2019-November/151763.html

Quoted 8 lines

---
v2:
- Updated meson config file to disable the kmods by default(Maxime)
- Updated the release notes(Honnappa)

I am not sure, in which section, we need to update the release notes for this specific case.I have updated on the "New Features" section. Thoughts ?

I moved (and reworded a bit) in "Removed Items".

Applied, thanks

#13 lore raw
In reply to [email protected]

This change also affects usertools/dpdk-setup.sh
When following this: https://doc.dpdk.org/guides/linux_gsg/quick_start.html
And trying to insert igb_uio, it gives following error:

## ERROR: Target does not have the DPDK UIO Kernel Module.
To fix, please try to rebuild target.

Should this script (and docs) be changed too?

Regards,
Herakliusz

Quoted 82 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of [email protected]
Sent: Friday, January 17, 2020 7:14 PM
To: [email protected]; Thomas Monjalon <[email protected]>; Mcnamara, John <[email protected]>; Kovacevic, Marko <[email protected]>; Richardson, Bruce <[email protected]>
Cc: [email protected]; Jerin Jacob <[email protected]>
Subject: [dpdk-dev] [PATCH v2] config: disable all kmods by default from v20.02

From: Jerin Jacob <[email protected]>

Based on the techboard meeting held on 2019-11-06, It's been decided to disable all kmods by default from v20.02.

http://mails.dpdk.org/archives/dev/2019-November/151763.html

---
v2:
- Updated meson config file to disable the kmods by default(Maxime)
- Updated the release notes(Honnappa)

I am not sure, in which section, we need to update the release notes for this specific case.I have updated on the "New Features" section. Thoughts ?

 config/common_linux                    | 2 --
 doc/guides/rel_notes/release_20_02.rst | 5 +++++
 meson_options.txt                      | 2 +-
 3 files changed, 6 insertions(+), 3 deletions(-)
config/common_linux index renamed from config/common_linux +0 -0

c5cf3d662..583efadc7 100644

config/common_linux +0 -0
@@ -8,9 +8,7 @@ CONFIG_RTE_EXEC_ENV_LINUX=y

CONFIG_RTE_EXEC_ENV_LINUXAPP=y

CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y

config/common_linux +0 -2
-CONFIG_RTE_EAL_IGB_UIO=y
 CONFIG_RTE_EAL_VFIO=y
-CONFIG_RTE_KNI_KMOD=y
 CONFIG_RTE_LIBRTE_KNI=y
 CONFIG_RTE_LIBRTE_PMD_KNI=y
 CONFIG_RTE_LIBRTE_VHOST=y
doc/guides/rel_notes/release_20_02.rst +0 -0
index 9cc257168..afd645e7a 100644
@@ -61,6 +61,11 @@ New Features
   A new API has been added to wait for a memory location to be updated

with a
16-bit, 32-bit, 64-bit value.

doc/guides/rel_notes/release_20_02.rst +5 -0
+* **Disabled all the Linux kernel modules build by default.**
+
+  In order to remove the build time dependency with Linux kernel,  The
+ techboard decided to disable all the kernel modules build by  default
+ from v20.02 version.
 
 Removed Items
 -------------
meson_options.txt index renamed from meson_options.txt +0 -0

bc369d06c..53dfe13c3 100644

meson_options.txt +1 -1
@@ -6,7 +6,7 @@ option('drivers_install_subdir', type: 'string', value:
 'dpdk/pmds-<VERSION>',
 	description: 'Subdirectory of libdir where to install PMDs. Defaults to
 using a versioned subdirectory.')  option('enable_docs', type: 'boolean',
 value: false,
 	description: 'build documentation')
-option('enable_kmods', type: 'boolean', value: true,
+option('enable_kmods', type: 'boolean', value: false,
 	description: 'build kernel modules')

option('examples', type: 'string', value: '',
description: 'Comma-separated list of examples to build by default')
--
2.24.1

#14 lore raw

12/02/2020 18:18, Lipiec, Herakliusz:

Quoted 8 lines

This change also affects usertools/dpdk-setup.sh
When following this: https://doc.dpdk.org/guides/linux_gsg/quick_start.html
And trying to insert igb_uio, it gives following error:

## ERROR: Target does not have the DPDK UIO Kernel Module.
To fix, please try to rebuild target.

Should this script (and docs) be changed too?

Yes, please update scripts and docs to recommend using VFIO.

#15 lore raw
In reply to [email protected]
Quoted 17 lines · On Thu, 12 Dec 2019 18:43:02 +0530 <[email protected]> wrote:

From: Jerin Jacob <[email protected]>

Based on the techboard meeting held on 2019-11-06, It's been decided to disable all kmods by default from v20.02.

http://mails.dpdk.org/archives/dev/2019-November/151763.html

---
 config/common_linux | 2 --
 1 file changed, 2 deletions(-)
config/common_linux +0 -0
index c5cf3d662..583efadc7 100644

config/common_linux CONFIG_RTE_EXEC_ENV_LINUX=y · line 14

Quoted 9 lines
config/common_linux +0 -2
@@ -8,9 +8,7 @@ CONFIG_RTE_EXEC_ENV_LINUX=y
 CONFIG_RTE_EXEC_ENV_LINUXAPP=y
 
 CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=y
-CONFIG_RTE_EAL_IGB_UIO=y
 CONFIG_RTE_EAL_VFIO=y
-CONFIG_RTE_KNI_KMOD=y
 CONFIG_RTE_LIBRTE_KNI=y
 CONFIG_RTE_LIBRTE_PMD_KNI=y
 CONFIG_RTE_LIBRTE_VHOST=y

On a related topic. All the documented examples should be changed to use vfio. Everyone just cut and paste from the documentation and expects igb_uio.

#16 lore raw

22/01/2020 07:34, Stephen Hemminger:

Quoted 2 lines

On a related topic. All the documented examples should be changed to use vfio. Everyone just cut and paste from the documentation and expects igb_uio.

Yes, good catch Stephen.
Who is volunteer?