On Fri, Dec 6, 2024 at 3:48 PM David Laight <David.Laight@xxxxxxxxxx> wrote: > > I've also wondered whether the ethernet driver could 'hold' the > iommu page table entries after (eg) a receive frame is processed > and then drop the PA of the replacement buffer into the same slot. > That is likely to speed up iommu setup. This has been done a long time ago (Alexander Duyck page refcount trick in Intel drivers) Then put into generic page_pool https://static.lwn.net/kerneldoc/networking/page_pool.html