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

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

 



On Mon, 17 Apr 2023 13:58:01 +0800 Xuan Zhuo wrote:
> On Sun, 16 Apr 2023 21:24:32 -0700, Christoph Hellwig <hch@xxxxxxxxxxxxx> 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.



[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