[PATCH] Do not name control queue for virtio-net

From: junbo4242
Date: Sat Sep 17 2022 - 05:29:14 EST


From: Junbo <junbo4242@xxxxxxxxx>

In virtio drivers, the control queue always named <virtioX>-config.

Signed-off-by: Junbo <junbo4242@xxxxxxxxx>
---
drivers/net/virtio_net.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 9cce7dec7366..0b3e74cfe201 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -3469,7 +3469,8 @@ static int virtnet_find_vqs(struct virtnet_info *vi)
/* Parameters for control virtqueue, if any */
if (vi->has_cvq) {
callbacks[total_vqs - 1] = NULL;
- names[total_vqs - 1] = "control";
+ /* control virtqueue always named <virtioX>-config */
+ names[total_vqs - 1] = "";
}

/* Allocate/initialize parameters for send/receive virtqueues */
--
2.31.1