diff options
author | Xuan Zhuo <xuanzhuo@linux.alibaba.com> | 2024-11-12 02:29:22 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-11-16 03:46:55 +0100 |
commit | 880ebcbe06636c42cfb328039581e177c6cd6ba5 (patch) | |
tree | 73f89fc4ac073eb2bcccc03b04d5ddc153f6e56b /drivers/net | |
parent | virtio-net: rq submits premapped per-buffer (diff) | |
download | linux-880ebcbe06636c42cfb328039581e177c6cd6ba5.tar.xz linux-880ebcbe06636c42cfb328039581e177c6cd6ba5.zip |
virtio_ring: remove API virtqueue_set_dma_premapped
Now, this API is useless. remove it.
Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Link: https://patch.msgid.link/20241112012928.102478-8-xuanzhuo@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/virtio_net.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 8aca4a3fc7e8..183ad5e6bef0 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -6168,15 +6168,6 @@ err_ctrl: return -ENOMEM; } -static void virtnet_rq_set_premapped(struct virtnet_info *vi) -{ - int i; - - for (i = 0; i < vi->max_queue_pairs; i++) - /* error should never happen */ - BUG_ON(virtqueue_set_dma_premapped(vi->rq[i].vq)); -} - static int init_vqs(struct virtnet_info *vi) { int ret; @@ -6190,10 +6181,6 @@ static int init_vqs(struct virtnet_info *vi) if (ret) goto err_free; - /* disable for big mode */ - if (!vi->big_packets || vi->mergeable_rx_bufs) - virtnet_rq_set_premapped(vi); - cpus_read_lock(); virtnet_set_affinity(vi); cpus_read_unlock(); |