# 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 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/08/17454661
- Thread: https://ratatoskr.run/netdev/2026/06/17136283/t.md

```text


On 8/24/26 8:29 AM, Luigi Rizzo wrote:
> 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

```
