]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5eba2f71a8ba43b9fa2a525f649d70bcb12f0cf4
tree3da833fc93443879248e1503c4a44cdeeebb6971
parenta22b73e4c642a071c80acacda2420d0e275ae6f7
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