virtio-net: delete also control queue when TX/RX deleted
commitd945d9f1731244ef341f74ede93120fc9de35913
authorYuri Benditovich <yuri.benditovich@daynix.com>
Thu, 26 Dec 2019 04:36:49 +0000 (26 06:36 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 6 Jan 2020 17:04:51 +0000 (6 12:04 -0500)
tree477def5be2839d6bb7cadf2a7be98eb960ea0657
parent421afd2fe8dd4603216cbf36081877c391f5a2a4
virtio-net: delete also control queue when TX/RX deleted

https://bugzilla.redhat.com/show_bug.cgi?id=1708480
If the control queue is not deleted together with TX/RX, it
later will be ignored in freeing cache resources and hot
unplug will not be completed.

Cc: qemu-stable@nongnu.org
Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
Message-Id: <20191226043649.14481-3-yuri.benditovich@daynix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/virtio-net.c