On Wed, Jun 4, 2025 at 8:59 AM David Howells [off-list ref] wrote:
(Apologies, I accidentally sent the incomplete email)
quoted
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