vsock/virtio: factor our the code to initialize and delete VQs
authorStefano Garzarella <sgarzare@redhat.com>
Thu, 28 Apr 2022 13:22:40 +0000 (15:22 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 2 May 2022 23:04:34 +0000 (16:04 -0700)
commita103209886264a3289f7e53e7ed389d0391fb23f
tree25f69ebbf5f771b588bc21a43fe6068db5c1ba42
parent954f46d2f0b4a76405a5e0788e3f80a24c657fd4
vsock/virtio: factor our the code to initialize and delete VQs

Add virtio_vsock_vqs_init() and virtio_vsock_vqs_del() with the code
that was in virtio_vsock_probe() and virtio_vsock_remove to initialize
and delete VQs.

These new functions will be used in the next commit to support device
suspend/resume

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/vmw_vsock/virtio_transport.c