OSDN Git Service

vsock/virtio: read the negotiated features before using VQs
authorStefano Garzarella <sgarzare@redhat.com>
Wed, 23 Mar 2022 17:36:24 +0000 (18:36 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 25 Mar 2022 01:36:36 +0000 (18:36 -0700)
commitc1011c0b3a9c8d2065f425407475cbcc812540b7
treeaefd06d969a1b3af5bcb2e6413eb7cf63a14e31d
parent4b5f1ad5566ada230aaa2ce861b28d1895f1ea68
vsock/virtio: read the negotiated features before using VQs

Complete the driver configuration, reading the negotiated features,
before using the VQs in the virtio_vsock_probe().

Fixes: 53efbba12cc7 ("virtio/vsock: enable SEQPACKET for transport")
Suggested-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
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