Subject: Re: [PATCH net-next] xsk: introduce xsk_dma_ops

From: Jakub Kicinski <[email-masked]>
Date: Mon, 17 Apr 2023 11:56:10 -0700

On Mon, 17 Apr 2023 13:58:01 +0800 Xuan Zhuo wrote:
> On Sun, 16 Apr 2023 21:24:32 -0700, Christoph Hellwig <[email-masked]> wrote:
> > On Mon, Apr 17, 2023 at 11:27:50AM +0800, Xuan Zhuo wrote:  
> > > The purpose of this patch is to allow driver pass the own dma_ops to
> > > xsk.  
> >
> > Drivers have no business passing around dma_ops, or even knowing about
> > them.  
> 
> May misunderstand, here the "dma_ops" is not the "dma_ops" of DMA API.
> 
> I mean the callbacks for xsk to do dma.
> 
> Maybe, I should rename it in the next version.

Would you mind explaining this a bit more to folks like me who are not
familiar with VirtIO?  DMA API is supposed to hide the DMA mapping
details from the stack, why is it not sufficient here.