Re: [PATCH net-next 3/3] bnxt_en: Let the page pool manage the DMA mapping

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

 





On 31/07/2023 23.11, Michael Chan wrote:
On Mon, Jul 31, 2023 at 1:44 PM Jakub Kicinski <kuba@xxxxxxxxxx> wrote:
tl;dr just set .max_len = PAGE_SIZE and all will be right.

OK I think I got it now.  The page is only recycled when all the
fragments are recycled and so we can let page pool DMA sync the whole
page at that time.

Yes, Jakub is right, I see that now.

When using page_pool "frag" API (e.g. page_pool_dev_alloc_frag) then the
optimization I talked about isn't valid.  We simply have to DMA sync the
entire page, when it gets back to the recycle stage.

--Jesper




[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