On Mon, Jul 27, 2020 at 07:17:51PM -0700, Eric Dumazet wrote: > > The thing is, the existing zero copy code is zero-copy to /host/ memory, > > which is not the same thing as zero-copy to other memory areas. > > You have to really explain what difference it makes, and why current > stuff can not be extended.
There basically is none. You need to call a different dma mapping routine and make sure to never access the device pages. See drivers/pci/p2pdma.c and its users for an example on how to do it properly. But the author wants all his crazy hacks to hook into his proprietary crap, so everyone should be ignore this horrible series.