Re: [PATCH v2 4/5] net: Divert socket allocations to SWIOTLB for nocopy TX

From
Randy Dunlap <rdunlap@infradead.org>
Date
2026-08-24 16:32:24
Also in
driver-core, linux-iommu, linux-mm, lkml
Reply to
Luigi Rizzo, 2026-08-24

On 8/24/26 8:29 AM, Luigi Rizzo wrote:
quoted hunk ↗ jump to hunk
diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c
index d4a07a7c570e1..7b818a796ff96 100644
--- a/kernel/dma/swiotlb.c
+++ b/kernel/dma/swiotlb.c
@@ -63,6 +63,11 @@
  */
 #define IO_TLB_MIN_SLABS ((1<<20) >> IO_TLB_SHIFT)
 
+/* enable nocopy tx swiotlb and set the percentage of buffers allowed for it. */
+unsigned int nocopy_tx_percent;
+module_param(nocopy_tx_percent, uint, 0644);
+MODULE_PARM_DESC(nocopy_tx_percent, "percentage of swiotlb buffer allowed for nocopy tx");
Please add this module param to the existing swiotlb param documentation
in Documentation/admin-guide/kernel-parameters.txt.

-- 
~Randy
Thread (30 messages) 30 messages, 11 authors, last reply 2026-08-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help