Displaying 6 results from an estimated 6 matches for "virtqueue_set_premap".
2023 Jul 10
10
[PATCH vhost v11 00/10] virtio core prepares for AF_XDP
...t_dma_dev to virtqueue_dma_dev
v1:
1. expose dma device. NO introduce the api for dma and sync
2. split some commit for review.
Xuan Zhuo (10):
virtio_ring: check use_dma_api before unmap desc for indirect
virtio_ring: put mapping error check in vring_map_one_sg
virtio_ring: introduce virtqueue_set_premapped()
virtio_ring: support add premapped buf
virtio_ring: introduce virtqueue_dma_dev()
virtio_ring: skip unmap for premapped
virtio_ring: correct the expression of the description of
virtqueue_resize()
virtio_ring: separate the logic of reset/enable from virtqueue_resize
virtio_ring...
2023 Jun 02
12
[PATCH vhost v10 00/10] virtio core prepares for AF_XDP
...to judgment to do unmap for indirect desc
4. rename virtqueue_get_dma_dev to virtqueue_dma_dev
v1:
1. expose dma device. NO introduce the api for dma and sync
2. split some commit for review.
Xuan Zhuo (10):
virtio_ring: put mapping error check in vring_map_one_sg
virtio_ring: introduce virtqueue_set_premapped()
virtio_ring: split: support add premapped buf
virtio_ring: packed: support add premapped buf
virtio_ring: split-detach: support return dma info to driver
virtio_ring: packed-detach: support return dma info to driver
virtio_ring: introduce helpers for premapped
virtio_ring: introduc...
2023 Jun 02
12
[PATCH vhost v10 00/10] virtio core prepares for AF_XDP
...to judgment to do unmap for indirect desc
4. rename virtqueue_get_dma_dev to virtqueue_dma_dev
v1:
1. expose dma device. NO introduce the api for dma and sync
2. split some commit for review.
Xuan Zhuo (10):
virtio_ring: put mapping error check in vring_map_one_sg
virtio_ring: introduce virtqueue_set_premapped()
virtio_ring: split: support add premapped buf
virtio_ring: packed: support add premapped buf
virtio_ring: split-detach: support return dma info to driver
virtio_ring: packed-detach: support return dma info to driver
virtio_ring: introduce helpers for premapped
virtio_ring: introduc...
2023 Jun 22
1
[PATCH vhost v10 10/10] virtio_net: support dma premapped
...gt; @@ -3658,6 +3765,18 @@ static int virtnet_find_vqs(struct virtnet_info *vi)
> vi->rq[i].vq = vqs[rxq2vq(i)];
> vi->rq[i].min_buf_len = mergeable_min_buf_len(vi, vi->rq[i].vq);
> vi->sq[i].vq = vqs[txq2vq(i)];
> +
> + if (experiment_premapped) {
> + if (!virtqueue_set_premapped(vi->rq[i].vq))
> + vi->rq[i].premapped = true;
> + else
> + netdev_warn(vi->dev, "RXQ (%d) enable premapped failure.\n", i);
> +
> + if (!virtqueue_set_premapped(vi->sq[i].vq))
> + vi->sq[i].premapped = true;
> + else
> + netdev_...
2023 Aug 10
12
[PATCH vhost v13 00/12] virtio core prepares for AF_XDP
...efore | 775496pps | 428614pps
After | 1109316pps | 742853pps
Please review.
Thanks.
v13:
1. virtio-net uses the virtqueue_dma_* APIs
2. virtio-net unmap with the flags DMA_ATTR_SKIP_CPU_SYNC
v12:
1. Alloc dma info from the alloc frag. Avoid alloc array to store the dma info.
2. rename virtqueue_set_premapped() to virtqueue_set_dma_premapped()
v11
1. virtio-net merges dma operates based on the feature premapped
2. A better way to handle the map error with the premapped
v10:
1. support to set vq to premapped mode, then the vq just handles the premapped request.
2. virtio-net support to do dma ma...
2023 Aug 10
12
[PATCH vhost v13 00/12] virtio core prepares for AF_XDP
...efore | 775496pps | 428614pps
After | 1109316pps | 742853pps
Please review.
Thanks.
v13:
1. virtio-net uses the virtqueue_dma_* APIs
2. virtio-net unmap with the flags DMA_ATTR_SKIP_CPU_SYNC
v12:
1. Alloc dma info from the alloc frag. Avoid alloc array to store the dma info.
2. rename virtqueue_set_premapped() to virtqueue_set_dma_premapped()
v11
1. virtio-net merges dma operates based on the feature premapped
2. A better way to handle the map error with the premapped
v10:
1. support to set vq to premapped mode, then the vq just handles the premapped request.
2. virtio-net support to do dma ma...