diff --git a/kernel-rt/centos/kernel-rt.spec b/kernel-rt/centos/kernel-rt.spec index 67f7bce8..e7fbbfef 100644 --- a/kernel-rt/centos/kernel-rt.spec +++ b/kernel-rt/centos/kernel-rt.spec @@ -804,6 +804,7 @@ Patch24: 0025-driver-core-auxiliary-bus-Fix-calling-stage-for-auxi.patch Patch25: 0026-driver-core-auxiliary-bus-Remove-unneeded-module-bit.patch Patch26: 0027-driver-core-auxiliary-bus-Fix-memory-leak-when-drive.patch Patch27: 0028-driver-core-auxiliary-bus-Enable-by-default.patch +Patch28: 0029-Enable-CONFIG_PAGE_POOL-by-default.patch # END OF PATCH DEFINITIONS %endif diff --git a/kernel-rt/centos/patches/0029-Enable-CONFIG_PAGE_POOL-by-default.patch b/kernel-rt/centos/patches/0029-Enable-CONFIG_PAGE_POOL-by-default.patch new file mode 100644 index 00000000..867f0ecd --- /dev/null +++ b/kernel-rt/centos/patches/0029-Enable-CONFIG_PAGE_POOL-by-default.patch @@ -0,0 +1,36 @@ +From e469e34954dc8eb27b0f2fe521e18ac2e03dad61 Mon Sep 17 00:00:00 2001 +From: "M. Vefa Bicakci" +Date: Thu, 3 Feb 2022 21:34:14 -0500 +Subject: [PATCH] Enable CONFIG_PAGE_POOL by default + +CONFIG_PAGE_POOL is a "hidden" configuration option, which causes it to +be enabled only when another kernel configuration option explicitly +selects it. Specifying CONFIG_PAGE_POOL=y in .config does not have any +effect. + +Given that StarlingX disables all in-tree device drivers that explicitly +select CONFIG_PAGE_POOL, and given that at least one out-of-tree kernel +module (mlnx-ofa_kernel) requires the features made available by +CONFIG_PAGE_POOL, this commit enables the configuration option in +question by default. + +Signed-off-by: M. Vefa Bicakci +--- + net/Kconfig | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/net/Kconfig b/net/Kconfig +index 05b0f041f039..62443980ba6b 100644 +--- a/net/Kconfig ++++ b/net/Kconfig +@@ -437,6 +437,7 @@ config NET_DEVLINK + + config PAGE_POOL + bool ++ default y + + config FAILOVER + tristate "Generic failover module" +-- +2.29.2 + diff --git a/kernel-std/centos/kernel.spec b/kernel-std/centos/kernel.spec index d3a34d47..b7773308 100644 --- a/kernel-std/centos/kernel.spec +++ b/kernel-std/centos/kernel.spec @@ -835,6 +835,7 @@ Patch24: 0025-driver-core-auxiliary-bus-Fix-calling-stage-for-auxi.patch Patch25: 0026-driver-core-auxiliary-bus-Remove-unneeded-module-bit.patch Patch26: 0027-driver-core-auxiliary-bus-Fix-memory-leak-when-drive.patch Patch27: 0028-driver-core-auxiliary-bus-Enable-by-default.patch +Patch28: 0029-Enable-CONFIG_PAGE_POOL-by-default.patch # END OF PATCH DEFINITIONS %endif diff --git a/kernel-std/centos/patches/0029-Enable-CONFIG_PAGE_POOL-by-default.patch b/kernel-std/centos/patches/0029-Enable-CONFIG_PAGE_POOL-by-default.patch new file mode 100644 index 00000000..fd854f70 --- /dev/null +++ b/kernel-std/centos/patches/0029-Enable-CONFIG_PAGE_POOL-by-default.patch @@ -0,0 +1,36 @@ +From 3ba9b411491dfdca077f7810cf474e82026f63c8 Mon Sep 17 00:00:00 2001 +From: "M. Vefa Bicakci" +Date: Thu, 3 Feb 2022 21:34:14 -0500 +Subject: [PATCH] Enable CONFIG_PAGE_POOL by default + +CONFIG_PAGE_POOL is a "hidden" configuration option, which causes it to +be enabled only when another kernel configuration option explicitly +selects it. Specifying CONFIG_PAGE_POOL=y in .config does not have any +effect. + +Given that StarlingX disables all in-tree device drivers that explicitly +select CONFIG_PAGE_POOL, and given that at least one out-of-tree kernel +module (mlnx-ofa_kernel) requires the features made available by +CONFIG_PAGE_POOL, this commit enables the configuration option in +question by default. + +Signed-off-by: M. Vefa Bicakci +--- + net/Kconfig | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/net/Kconfig b/net/Kconfig +index d6567162c1cf..add29b03a664 100644 +--- a/net/Kconfig ++++ b/net/Kconfig +@@ -437,6 +437,7 @@ config NET_DEVLINK + + config PAGE_POOL + bool ++ default y + + config FAILOVER + tristate "Generic failover module" +-- +2.29.2 +