summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorXianting Tian <xianting_tian@126.com>2021-06-23 11:16:22 -0400
committerDavid S. Miller <davem@davemloft.net>2021-06-23 13:52:22 -0700
commita2f7dc00ea51a9dbb7c5b4ca8e508acb24f7ca8c (patch)
tree51e59a174d3de14dbe9310a180b009eb09992375 /drivers
parent10ed7ce42b13790ba85f8e10110d89a2bce58807 (diff)
virtio_net: Use virtio_find_vqs_ctx() helper
virtio_find_vqs_ctx() is defined but never be called currently, it is the right place to use it. Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/virtio_net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 0416a7e00914..b0b81458ca94 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -2847,8 +2847,8 @@ static int virtnet_find_vqs(struct virtnet_info *vi)
ctx[rxq2vq(i)] = true;
}
- ret = vi->vdev->config->find_vqs(vi->vdev, total_vqs, vqs, callbacks,
- names, ctx, NULL);
+ ret = virtio_find_vqs_ctx(vi->vdev, total_vqs, vqs, callbacks,
+ names, ctx, NULL);
if (ret)
goto err_find;