# Re: Device mem changes vs pinning/zerocopy changes

- From: Mina Almasry \<hidden\>
- Date: 2025-06-05 19:30:41 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/06/3080845
- Thread: https://ratatoskr.run/netdev/2025/05/3074577/t.md

```text
On Wed, Jun 4, 2025 at 8:59 AM David Howells [ref] wrote:
>
> (Apologies, I accidentally sent the incomplete email)
>
> > I think you need to modify the existing sk_buff. I think adding
> > a new struct and migrating the entire net stack to use that is a bit
> > too ambitious. But up to you. Just my 2 cents here.
>
> It may come down to that, and if it does, we'll need to handle frags
> differently.  Basically, for zerocopy, the following will all apply or come to
> apply sometime in the future:
>
>  (1) We're going to be getting arrays of {physaddr,len} from the higher
>      layers.  I think Christoph's idea is that this makes DMA mapping easier.
>      We will need to retain this.
>

I would punt this to a follow up project. Currently the net stack uses
pages extensively; replacing them with scatterlist-like {physaddr,
len} sounds like a huge undertaking. Especially with the conversion to
netmem_desc happening in parallel with Byungchul's series. Just my 2
cents.

-- 
Thanks,
Mina
```
