Re: [PATCH net-next v9 03/20] net: generalise net_iov chunk owners

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/21/24 02:17, Jakub Kicinski wrote:
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?

Right, but io_uring can make use of it, it just needs better types,
which is why I left it there to follow up later.
AFAIR for devmem each area is physically contiguous if the region is
not it gets split into areas.

Seems so, it's split into areas / chunk owners by following the
sg list layout.

--
Pavel Begunkov





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux