virtio/vsock: support MSG_PEEK for SOCK_SEQPACKET
authorArseniy Krasnov <AVKrasnov@sberdevices.ru>
Tue, 25 Jul 2023 17:29:10 +0000 (20:29 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 27 Jul 2023 13:51:48 +0000 (15:51 +0200)
commita75f501de88e58db24dc8822505f924cd1085ac6
treecd7e4bc019431ae868ba6e05bb7d65418bef5bc5
parent051e77e33946f932e6879bf4df2773e3c998c3a7
virtio/vsock: support MSG_PEEK for SOCK_SEQPACKET

This adds support of MSG_PEEK flag for SOCK_SEQPACKET type of socket.
Difference with SOCK_STREAM is that this callback returns either length
of the message or error.

Signed-off-by: Arseniy Krasnov <AVKrasnov@sberdevices.ru>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/vmw_vsock/virtio_transport_common.c