Re: [PATCH net-next v6 12/12] net/mlx5e: Add TX support for netmems

From
Mina Almasry <hidden>
Date
2025-06-19 22:19:49
Also in
bpf, linux-rdma, lkml
Reply to
Dragos Tatulea, 2025-06-19
On Thu, Jun 19, 2025 at 9:07 AM Dragos Tatulea [off-list ref] wrote:
quoted
You have to test ncdevmem tx on a platform with iommu enabled. Only in
this case the netmem_dma_unmap_page_attrs() may cause a problem, and
even then it's not a sure thing. It depends on the type of iommu and
type of dmabuf i think.
Is it worth adding a WARN_ON_ONCE(netmem_is_net_iov())
in netmem_dma_unmap_page_attrs() after addr check to catch these kinds
of misuse?
I would say it's worth it, but it's the same challenge you point to in
your reply: netmem_dma_unmap_page_attrs currently doesn't take in a
netmem, and it may be a big refactor not worth it if it's callers also
don't have a reference to the netmem readily available to pass it.

-- 
Thanks,
Mina
Thread (22 messages) 22 messages, 6 authors, last reply 2025-06-25
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