Re: [PATCH net-next v1] xsk: introduce xsk_dma_cbs

2023-04-23 Thread Michael S. Tsirkin
On Sun, Apr 23, 2023 at 08:45:20AM +0200, Greg KH wrote: > On Sun, Apr 23, 2023 at 02:25:45PM +0800, Xuan Zhuo wrote: > > The purpose of this patch is to allow driver pass the own dma callbacks > > to xsk. > > > > This is to cope with the scene of virtio-net. If virtio does not have > > VIRTIO_F_A

Re: [PATCH net-next v1] xsk: introduce xsk_dma_cbs

2023-04-23 Thread Xuan Zhuo
On Sun, 23 Apr 2023 10:39:15 +0200, Greg KH wrote: > On Sun, Apr 23, 2023 at 02:58:36PM +0800, Xuan Zhuo wrote: > > On Sun, 23 Apr 2023 08:45:20 +0200, Greg KH > > wrote: > > > On Sun, Apr 23, 2023 at 02:25:45PM +0800, Xuan Zhuo wrote: > > > > The purpose of this patch is to allow driver pass th

Re: [PATCH net-next v1] xsk: introduce xsk_dma_cbs

2023-04-23 Thread Greg KH
On Sun, Apr 23, 2023 at 02:58:36PM +0800, Xuan Zhuo wrote: > On Sun, 23 Apr 2023 08:45:20 +0200, Greg KH > wrote: > > On Sun, Apr 23, 2023 at 02:25:45PM +0800, Xuan Zhuo wrote: > > > The purpose of this patch is to allow driver pass the own dma callbacks > > > to xsk. > > > > > > This is to cope

Re: [PATCH net-next v1] xsk: introduce xsk_dma_cbs

2023-04-23 Thread Xuan Zhuo
On Sun, 23 Apr 2023 08:45:20 +0200, Greg KH wrote: > On Sun, Apr 23, 2023 at 02:25:45PM +0800, Xuan Zhuo wrote: > > The purpose of this patch is to allow driver pass the own dma callbacks > > to xsk. > > > > This is to cope with the scene of virtio-net. If virtio does not have > > VIRTIO_F_ACCESS_

Re: [PATCH net-next v1] xsk: introduce xsk_dma_cbs

2023-04-22 Thread Greg KH
On Sun, Apr 23, 2023 at 02:25:45PM +0800, Xuan Zhuo wrote: > The purpose of this patch is to allow driver pass the own dma callbacks > to xsk. > > This is to cope with the scene of virtio-net. If virtio does not have > VIRTIO_F_ACCESS_PLATFORM, then virtio cannot use DMA API. In this case, > xsk c

[PATCH net-next v1] xsk: introduce xsk_dma_cbs

2023-04-22 Thread Xuan Zhuo
The purpose of this patch is to allow driver pass the own dma callbacks to xsk. This is to cope with the scene of virtio-net. If virtio does not have VIRTIO_F_ACCESS_PLATFORM, then virtio cannot use DMA API. In this case, xsk cannot use DMA API directly to achieve DMA address. Based on this scene,