Re: [RFC] VSOCK: add support for MSG_PEEK

2019-09-23 Thread Matias Ezequiel Vara Larsen
On Mon, Sep 23, 2019 at 09:58:30AM +0200, Stefano Garzarella wrote: > Hi Matias, > thanks for this patch! > > Since this patch only concerns virtio_transport, > I'd use the 'vsock/virtio' prefix in the commit title: > "vsock/virtio: add support for MSG_PEEK" > > Some comments below: > > On Sun,

Re: [RFC] VSOCK: add support for MSG_PEEK

2019-09-23 Thread Stefano Garzarella
Hi Matias, thanks for this patch! Since this patch only concerns virtio_transport, I'd use the 'vsock/virtio' prefix in the commit title: "vsock/virtio: add support for MSG_PEEK" Some comments below: On Sun, Sep 22, 2019 at 05:48:27PM +, Matias Ezequiel Vara Larsen wrote: > This patch adds s

[RFC] VSOCK: add support for MSG_PEEK

2019-09-22 Thread Matias Ezequiel Vara Larsen
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 --- net/vmw_vsock/virtio_transport_common.c | 59 +++-- 1 file changed, 56 insertions(+), 3 dele