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

From
Dragos Tatulea <dtatulea@nvidia.com>
Date
2025-06-25 10:57:18
Also in
bpf, linux-rdma, lkml
Reply to
Dragos Tatulea, 2025-06-19
quoted
If you can find a way to do this via netmem_dma_unmap_addr_set, I
think that would be better, so you're not relying on a manual
netmem_is_net_iov check.

The way you'd do that is you'd pass skb_frag_netmem(frag) to
mlx5e_dma_push, and then replace the `dma->addr = addr` with
netmem_dma_unmap_addr_set. But up to you.
Thanks for the suggestion. This would require some additional
refactoring. I need to play with this to see if it requires a
lot of rewiring or not.
Got around to this. Found a way to use netmem_dma_unmap_addr_set()
with a small refactoring that makes sense. We'll send a patch soon.

Thanks,
Dragos
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