lkml.org 
[lkml]   [2023]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net-next v4 02/12] vsock: read from socket's error queue
On Tue, Oct 10, 2023 at 10:15:14PM +0300, Arseniy Krasnov wrote:
>This adds handling of MSG_ERRQUEUE input flag in receive call. This flag
>is used to read socket's error queue instead of data queue. Possible
>scenario of error queue usage is receiving completions for transmission
>with MSG_ZEROCOPY flag. This patch also adds new defines: 'SOL_VSOCK'
>and 'VSOCK_RECVERR'.
>
>Signed-off-by: Arseniy Krasnov <avkrasnov@salutedevices.com>
>---
> Changelog:
> v1 -> v2:
> * Place new defines for userspace to the existing file 'vm_sockets.h'
> instead of creating new one.
> v2 -> v3:
> * Add comments to describe 'SOL_VSOCK' and 'VSOCK_RECVERR' in the file
> 'vm_sockets.h'.
> * Reorder includes in 'af_vsock.c' in alphabetical order.
> v3 -> v4:
> * Update comments for 'SOL_VSOCK' and 'VSOCK_RECVERR' by adding more
> details.
>
> include/linux/socket.h | 1 +
> include/uapi/linux/vm_sockets.h | 17 +++++++++++++++++
> net/vmw_vsock/af_vsock.c | 6 ++++++
> 3 files changed, 24 insertions(+)

Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>

\
 
 \ /
  Last update: 2023-10-11 14:56    [W:1.234 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site