On Sat, 21 Dec 2024 00:50:37 +0000 Pavel Begunkov wrote: > > Is there a good reason why dma addr is not part of net_iov_area? > > net_iov_area is one chunk of continuous address space. > > Instead of looping over pages in io_zcrx_map_area we could map > > the whole thing in one go. > > It's not physically contiguous. The registration API takes > contig user addresses, but that's not a hard requirement > either. Okay, I was thrown off by the base_virtual being in the common struct. But it appears you don't use that? AFAIR for devmem each area is physically contiguous if the region is not it gets split into areas.