OSDN Git Service

vsock/virtio: add support for MSG_PEEK
authorMatias Ezequiel Vara Larsen <matiasevara@gmail.com>
Mon, 30 Sep 2019 18:25:23 +0000 (18:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Oct 2019 01:26:51 +0000 (21:26 -0400)
commita786ab36ae6f486d59e05cd5570319508d23477e
tree3da833fc93443879248e1503c4a44cdeeebb6971
parent678799194a5311765263b6aa940910ab232767eb
vsock/virtio: add support for MSG_PEEK

This patch adds support for MSG_PEEK. In such a case, packets are not
removed from the rx_queue and credit updates are not sent.

Signed-off-by: Matias Ezequiel Vara Larsen <matiasevara@gmail.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Tested-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/vmw_vsock/virtio_transport_common.c