Skip to contentSkip to conversation

build: remove deprecated kmods option

PATCH Superseded Bruce Richardson 2 participants 10 messages Sep 19, 2025 – Sep 26, 2025 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: remove deprecated kmods option

The "enable_kmods" meson option was deprecated back in 2023[1], so can now be removed from DPDK.

[1] https://doc.dpdk.org/guides-23.11/rel_notes/deprecation.html

---
 doc/guides/rel_notes/deprecation.rst | 7 -------
 meson_options.txt                    | 2 --
 2 files changed, 9 deletions(-)
doc/guides/rel_notes/deprecation.rst +0 -7
index 0fcdd02d3c..483030cda8 100644
@@ -17,13 +17,6 @@ Other API and ABI deprecation notices are to be posted below.
 Deprecation Notices
 -------------------
 
-* build: The ``enable_kmods`` option is deprecated and will be removed in a future release.
-  Setting/clearing the option has no impact on the build.
-  Instead, kernel modules will be always built for OS's where out-of-tree kernel modules
-  are required for DPDK operation.
-  Currently, this means that modules will only be built for FreeBSD.
-  No modules are shipped with DPDK for either Linux or Windows.
-
 * kvargs: The function ``rte_kvargs_process`` will get a new parameter
   for returning key match count. It will ease handling of no-match case.
 
meson_options.txt +0 -2
index e49b2fc089..e28d24054c 100644
@@ -24,8 +24,6 @@ option('enable_drivers', type: 'string', value: '', description:
        'Comma-separated list of drivers to build. If unspecified, build all drivers.')
 option('enable_driver_sdk', type: 'boolean', value: false, description:
        'Install headers to build drivers.')
-option('enable_kmods', type: 'boolean', value: true, description:
-       '[Deprecated - will be removed in future release] build kernel modules')
 option('enable_libs', type: 'string', value: '', description:
        'Comma-separated list of optional libraries to explicitly enable. [NOTE: mandatory libs are always enabled]')
 option('examples', type: 'string', value: '', description:
Signature · 1 line
2.48.1
#2 lore raw

PATCH v2 1/1 build: remove deprecated kmods option

In reply to Bruce Richardson

The "enable_kmods" meson option was deprecated back in 2023[1], so can now be removed from DPDK.

[1] https://doc.dpdk.org/guides-23.11/rel_notes/deprecation.html

---
v2: remove missed references in DTS and in freebsd meson.build

---
 doc/guides/rel_notes/deprecation.rst | 7 -------
 dts/framework/remote_session/dpdk.py | 2 +-
 dts/framework/utils.py               | 2 +-
 kernel/freebsd/meson.build           | 4 ++--
 meson_options.txt                    | 2 --
 5 files changed, 4 insertions(+), 13 deletions(-)
doc/guides/rel_notes/deprecation.rst +0 -7
index 5aaeb1052a..bdcd2775b6 100644
@@ -17,13 +17,6 @@ Other API and ABI deprecation notices are to be posted below.
 Deprecation Notices
 -------------------
 
-* build: The ``enable_kmods`` option is deprecated and will be removed in a future release.
-  Setting/clearing the option has no impact on the build.
-  Instead, kernel modules will be always built for OS's where out-of-tree kernel modules
-  are required for DPDK operation.
-  Currently, this means that modules will only be built for FreeBSD.
-  No modules are shipped with DPDK for either Linux or Windows.
-
 * kvargs: The function ``rte_kvargs_process`` will get a new parameter
   for returning key match count. It will ease handling of no-match case.
 
dts/framework/remote_session/dpdk.py +1 -1
index 606d6e22fe..2dc8dab642 100644
@@ -262,7 +262,7 @@ def _build_dpdk(self) -> None:
         """
         self._session.build_dpdk(
             self._env_vars,
-            MesonArgs(default_library="static", enable_kmods=True, libdir="lib"),
+            MesonArgs(default_library="static", libdir="lib"),
             self.remote_dpdk_tree_path,
             self.remote_dpdk_build_dir,
         )
dts/framework/utils.py +1 -1
index 0c81ab1b95..9f7201c888 100644
@@ -111,7 +111,7 @@ def __init__(self, default_library: str | None = None, **dpdk_args: str | bool):
         Example:
             ::
 
-                meson_args = MesonArgs(enable_kmods=True).
+                meson_args = MesonArgs(check_includes=True).
         """
         self._default_library = f"--default-library={default_library}" if default_library else ""
         self._dpdk_args = " ".join(
kernel/freebsd/meson.build +2 -2
index 1f612711be..862e19e766 100644
@@ -29,7 +29,7 @@ foreach k:kmods
                 'KMOD_CFLAGS=' + ' '.join(kmod_cflags),
                 'CC=clang'],
             depends: built_kmods, # make each module depend on prev
-            build_by_default: get_option('enable_kmods'),
-            install: get_option('enable_kmods'),
+            build_by_default: true,
+            install: true,
             install_dir: '/boot/modules/')
 endforeach
meson_options.txt +0 -2
index e49b2fc089..e28d24054c 100644
@@ -24,8 +24,6 @@ option('enable_drivers', type: 'string', value: '', description:
        'Comma-separated list of drivers to build. If unspecified, build all drivers.')
 option('enable_driver_sdk', type: 'boolean', value: false, description:
        'Install headers to build drivers.')
-option('enable_kmods', type: 'boolean', value: true, description:
-       '[Deprecated - will be removed in future release] build kernel modules')
 option('enable_libs', type: 'string', value: '', description:
        'Comma-separated list of optional libraries to explicitly enable. [NOTE: mandatory libs are always enabled]')
 option('examples', type: 'string', value: '', description:
Signature · 1 line
2.48.1
#4 lore raw

PATCH v3 1/1 build: remove deprecated kmods option

In reply to Bruce Richardson

The "enable_kmods" meson option was deprecated back in 2023[1], so can now be removed from DPDK.

[1] https://doc.dpdk.org/guides-23.11/rel_notes/deprecation.html

---
v3: add release note update.
v2: remove missed references in DTS and in freebsd meson.build

---
 doc/guides/rel_notes/deprecation.rst   | 7 -------
 doc/guides/rel_notes/release_25_11.rst | 7 +++++++
 dts/framework/remote_session/dpdk.py   | 2 +-
 dts/framework/utils.py                 | 2 +-
 kernel/freebsd/meson.build             | 4 ++--
 meson_options.txt                      | 2 --
 6 files changed, 11 insertions(+), 13 deletions(-)
doc/guides/rel_notes/deprecation.rst +0 -7
index 5aaeb1052a..bdcd2775b6 100644
@@ -17,13 +17,6 @@ Other API and ABI deprecation notices are to be posted below.
 Deprecation Notices
 -------------------
 
-* build: The ``enable_kmods`` option is deprecated and will be removed in a future release.
-  Setting/clearing the option has no impact on the build.
-  Instead, kernel modules will be always built for OS's where out-of-tree kernel modules
-  are required for DPDK operation.
-  Currently, this means that modules will only be built for FreeBSD.
-  No modules are shipped with DPDK for either Linux or Windows.
-
 * kvargs: The function ``rte_kvargs_process`` will get a new parameter
   for returning key match count. It will ease handling of no-match case.
 
doc/guides/rel_notes/release_25_11.rst +7 -0
index efb88bbbb0..bce8e9f563 100644
@@ -89,6 +89,13 @@ Removed Items
    Also, make sure to start the actual text at the margin.
    =======================================================
 
+* build: as previously announced in the deprecation notices,
+  the ``enable_kmods`` build option has been removed.
+  Kernel modules will now automatically be built for OS's where out-of-tree kernel modules
+  are required for DPDK operation.
+  Currently, this means that modules will only be built for FreeBSD.
+  No modules are shipped with DPDK for either Linux or Windows.
+
 
 API Changes
 -----------
dts/framework/remote_session/dpdk.py +1 -1
index 606d6e22fe..2dc8dab642 100644
@@ -262,7 +262,7 @@ def _build_dpdk(self) -> None:
         """
         self._session.build_dpdk(
             self._env_vars,
-            MesonArgs(default_library="static", enable_kmods=True, libdir="lib"),
+            MesonArgs(default_library="static", libdir="lib"),
             self.remote_dpdk_tree_path,
             self.remote_dpdk_build_dir,
         )
dts/framework/utils.py +1 -1
index 0c81ab1b95..9f7201c888 100644
@@ -111,7 +111,7 @@ def __init__(self, default_library: str | None = None, **dpdk_args: str | bool):
         Example:
             ::
 
-                meson_args = MesonArgs(enable_kmods=True).
+                meson_args = MesonArgs(check_includes=True).
         """
         self._default_library = f"--default-library={default_library}" if default_library else ""
         self._dpdk_args = " ".join(
kernel/freebsd/meson.build +2 -2
index 1f612711be..862e19e766 100644
@@ -29,7 +29,7 @@ foreach k:kmods
                 'KMOD_CFLAGS=' + ' '.join(kmod_cflags),
                 'CC=clang'],
             depends: built_kmods, # make each module depend on prev
-            build_by_default: get_option('enable_kmods'),
-            install: get_option('enable_kmods'),
+            build_by_default: true,
+            install: true,
             install_dir: '/boot/modules/')
 endforeach
meson_options.txt +0 -2
index e49b2fc089..e28d24054c 100644
@@ -24,8 +24,6 @@ option('enable_drivers', type: 'string', value: '', description:
        'Comma-separated list of drivers to build. If unspecified, build all drivers.')
 option('enable_driver_sdk', type: 'boolean', value: false, description:
        'Install headers to build drivers.')
-option('enable_kmods', type: 'boolean', value: true, description:
-       '[Deprecated - will be removed in future release] build kernel modules')
 option('enable_libs', type: 'string', value: '', description:
        'Comma-separated list of optional libraries to explicitly enable. [NOTE: mandatory libs are always enabled]')
 option('examples', type: 'string', value: '', description:
Signature · 1 line
2.48.1
#5 lore raw
Quoted 8 lines · Bruce Richardson

The "enable_kmods" meson option was deprecated back in 2023[1], so can now be removed from DPDK.

[1] https://doc.dpdk.org/guides-23.11/rel_notes/deprecation.html

I see errors coming from Intel CI that requests enable_kmod option. It needs to be fixed on Intel side so we can merge this series.

Signature · 1 line
David Marchand
#6 lore raw
Quoted 6 lines · David Marchand
Quoted 4 lines · Bruce Richardson

The "enable_kmods" meson option was deprecated back in 2023[1], so can now be removed from DPDK.

Quoted 8 lines
Quoted 4 lines

[1] https://doc.dpdk.org/guides-23.11/rel_notes/deprecation.html

I see errors coming from Intel CI that requests enable_kmod option. It needs to be fixed on Intel side so we can merge this series.

Yes. I've sent off a couple of hours ago a request to have that fixed in our CI. I'll let you know when I hear back.

/Bruce

#7 lore raw
Quoted 12 lines · Bruce Richardson
Quoted 11 lines · David Marchand
Quoted 8 lines · Bruce Richardson

The "enable_kmods" meson option was deprecated back in 2023[1], so can now be removed from DPDK.

[1] https://doc.dpdk.org/guides-23.11/rel_notes/deprecation.html

Quoted 7 lines
Quoted 3 lines

I see errors coming from Intel CI that requests enable_kmod option. It needs to be fixed on Intel side so we can merge this series.

Yes. I've sent off a couple of hours ago a request to have that fixed in our CI. I'll let you know when I hear back.

/Bruce

This has now been done, I'm told.

https://mails.dpdk.org/archives/test-report/2025-September/911620.html

/Bruce

#8 lore raw
Quoted 17 lines · Bruce Richardson
Quoted 15 lines · Bruce Richardson
Quoted 14 lines · David Marchand
Quoted 8 lines · Bruce Richardson

The "enable_kmods" meson option was deprecated back in 2023[1], so can now be removed from DPDK.

[1] https://doc.dpdk.org/guides-23.11/rel_notes/deprecation.html

I see errors coming from Intel CI that requests enable_kmod option. It needs to be fixed on Intel side so we can merge this series.

Quoted 8 lines
Quoted 4 lines

Yes. I've sent off a couple of hours ago a request to have that fixed in our CI. I'll let you know when I hear back.

/Bruce

This has now been done, I'm told.

https://mails.dpdk.org/archives/test-report/2025-September/911620.html

Then here we go.

Signature · 1 line
David Marchand