Explorar el Código

kernel: make it possible for packages to select page pool support

Will be used by the next mt76 update

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau hace 2 años
padre
commit
d02d455678

+ 7 - 0
config/Config-kernel.in

@@ -1123,6 +1123,13 @@ config KERNEL_WEXT_PROC
 config KERNEL_WEXT_SPY
 	def_bool KERNEL_WIRELESS_EXT
 
+config KERNEL_PAGE_POOL
+	def_bool n
+
+config KERNEL_PAGE_POOL_STATS
+	bool "Page pool stats support"
+	depends on KERNEL_PAGE_POOL
+	depends on !LINUX_5_10
 
 #
 # NFS related symbols

+ 11 - 0
target/linux/generic/hack-5.10/251-kconfig.patch

@@ -197,3 +197,14 @@ Signed-off-by: John Crispin <[email protected]>
  
  config SND_JACK
  	bool
+--- a/net/Kconfig
++++ b/net/Kconfig
+@@ -436,7 +436,7 @@ config NET_DEVLINK
+ 	default n
+ 
+ config PAGE_POOL
+-	bool
++	bool "Page pool support"
+ 
+ config FAILOVER
+ 	tristate "Generic failover module"

+ 11 - 0
target/linux/generic/hack-5.15/251-kconfig.patch

@@ -197,3 +197,14 @@ Signed-off-by: John Crispin <[email protected]>
  
  config SND_JACK
  	bool
+--- a/net/Kconfig
++++ b/net/Kconfig
+@@ -432,7 +432,7 @@ config NET_DEVLINK
+ 	default n
+ 
+ config PAGE_POOL
+-	bool
++	bool "Page pool support"
+ 
+ config PAGE_POOL_STATS
+ 	default n