vhost/vsock: support MSG_EOR bit processing
authorArseny Krasnov <arseny.krasnov@kaspersky.com>
Fri, 3 Sep 2021 12:32:35 +0000 (15:32 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 5 Sep 2021 20:23:09 +0000 (16:23 -0400)
commit1af7e55511fe194a07f3fa4e77b5b9d10bdd9208
treec548575984c6d18f8645791daf335f1044dcf8ba
parent41116599a0731f4cd451e9d191d879ab45e31945
vhost/vsock: support MSG_EOR bit processing

'MSG_EOR' handling has similar logic as 'MSG_EOM' - if bit present
in packet's header, reset it to 0. Then restore it back if packet
processing wasn't completed. Instead of bool variable for each
flag, bit mask variable was added: it has logical OR of 'MSG_EOR'
and 'MSG_EOM' if needed, to restore flags, this variable is ORed
with flags field of packet.

Signed-off-by: Arseny Krasnov <arseny.krasnov@kaspersky.com>
Link: https://lore.kernel.org/r/20210903123238.3273526-1-arseny.krasnov@kaspersky.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
drivers/vhost/vsock.c