Re: [RFC PATCH v7 06/22] af_vsock: implement send logic for SEQPACKET

From: Stefano Garzarella
Date: Thu Mar 25 2021 - 05:44:08 EST


On Tue, Mar 23, 2021 at 04:10:42PM +0300, Arseny Krasnov wrote:
This adds some logic to current stream enqueue function for SEQPACKET
support:
1) Use transport's seqpacket enqueue callback.
2) Return value from enqueue function is whole record length or error
for SOCK_SEQPACKET.

Signed-off-by: Arseny Krasnov <arseny.krasnov@xxxxxxxxxxxxx>
---
v6 -> v7:
'seqpacket_enqueue' callback interface changed, 'flags' argument was
removed, because it was 'msg_flags' field of 'msg' argument which is
already exists.

include/net/af_vsock.h | 2 ++
net/vmw_vsock/af_vsock.c | 21 +++++++++++++++------
2 files changed, 17 insertions(+), 6 deletions(-)


Reviewed-by: Stefano Garzarella <sgarzare@xxxxxxxxxx>