virtio_ring: enable premapped mode whatever use_dma_api
authorXuan Zhuo <xuanzhuo@linux.alibaba.com>
Sat, 11 May 2024 03:14:01 +0000 (11:14 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 May 2024 00:07:41 +0000 (17:07 -0700)
commitf9dac92ba9081062a6477ee015bd3b8c5914efc4
tree2c3d1f95db49c92d29566ebaafbb9a699a9e5239
parent6e62702feb6d474e969b52f0379de93e9729e457
virtio_ring: enable premapped mode whatever use_dma_api

Now, we have virtio DMA APIs, the driver can be the premapped
mode whatever the virtio core uses dma api or not.

So remove the limit of checking use_dma_api from
virtqueue_set_dma_premapped().

Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20240511031404.30903-2-xuanzhuo@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/virtio/virtio_ring.c