Files
unkernel/kernel/patches/linux/net-let-NET_DEVMEM-be-turned-off.patch
Pooya Parsa 25e0add13f kernel: fold the patch series and export it without churn
Fold the 56 kernel patches into 32: one arch patch (which now includes
the riscv ISA patch, parking, atomics, SMP, blocking waits, unfair
spinlocks, the arm64 user ABI, pc sampling, ptrace, single-step and core
dumps), each driver with its SMP part, the generic changes one per piece
(the cond_resched() poll split out of the arch patch), and kw_defconfig
last. The messages describe the code as it is; every patch that was
kernel-wasm@localhost's is Pooya Parsa's. The tree is unchanged.

kernel/build.sh patches (kernel/tools/export-patches.sh) exports the
series without what changed in every later patch on each edit: no
numbers in the file names (the order is the new series file, which
build.sh applies), a zero commit hash, no git version signature and no
index lines, with the diff options fixed.
2026-11-28 18:55:49 +00:00

38 lines
1.1 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Pooya Parsa <pooya@pi0.io>
Date: Sat, 21 Nov 2026 19:23:30 +0000
Subject: [PATCH] net: let NET_DEVMEM be turned off
NET_DEVMEM is def_bool y whenever DMA_SHARED_BUFFER and PAGE_POOL are,
so a kernel that has dma-buf only because DRM selects it also builds
devmem TCP and the genalloc library it selects. devmem.h, netmem.h and
mp_dmabuf_devmem.h already have stubs for !NET_DEVMEM.
Give it a prompt under EXPERT, default y, so that such a kernel can
leave it out.
---
net/Kconfig | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/net/Kconfig b/net/Kconfig
--- a/net/Kconfig
+++ b/net/Kconfig
@@ -67,10 +67,16 @@ config SKB_EXTENSIONS
bool
config NET_DEVMEM
- def_bool y
+ bool "Device memory TCP" if EXPERT
+ default y
select GENERIC_ALLOCATOR
depends on DMA_SHARED_BUFFER
depends on PAGE_POOL
+ help
+ Lets the network stack receive into and send from dma-buf
+ memory (devmem TCP). It is on whenever dma-buf and page pools
+ are; a kernel that has dma-buf for a display driver alone does
+ not need it.
config NET_SHAPER
bool