Re: [PATCH vhost] virtio_net: fix the missing of the dma cpu sync

2023-10-07 Thread Jason Wang
On Wed, Sep 27, 2023 at 1:53 PM Xuan Zhuo wrote: > > Commit 295525e29a5b ("virtio_net: merge dma operations when filling > mergeable buffers") unmaps the buffer with DMA_ATTR_SKIP_CPU_SYNC when > the dma->ref is zero. We do that with DMA_ATTR_SKIP_CPU_SYNC, because we > do not want to do the sync

[PATCH vhost] virtio_net: fix the missing of the dma cpu sync

2023-09-26 Thread Xuan Zhuo
Commit 295525e29a5b ("virtio_net: merge dma operations when filling mergeable buffers") unmaps the buffer with DMA_ATTR_SKIP_CPU_SYNC when the dma->ref is zero. We do that with DMA_ATTR_SKIP_CPU_SYNC, because we do not want to do the sync for the entire page_frag. But that misses the sync for the c