# 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 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/06/3107024
- Thread: https://ratatoskr.run/netdev/2025/06/3093903/t.md

```text
> > 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
```
