]> git.baikalelectronics.ru Git - kernel.git/commit
af_vsock: separate receive data loop
authorArseny Krasnov <arseny.krasnov@kaspersky.com>
Fri, 11 Jun 2021 11:10:21 +0000 (14:10 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Jun 2021 20:32:46 +0000 (13:32 -0700)
commit14916a52bd8060f359dcc545386607319b0b68cc
tree98919f63c82b3290f5aa66d345fff9b10e8ae18f
parentaf180909a41f5a133a23c658467e1936d342ab0d
af_vsock: separate receive data loop

Some code in receive data loop could be shared between SEQPACKET
and STREAM sockets, while another part is type specific, so move STREAM
specific data receive logic to '__vsock_stream_recvmsg()' dedicated
function, while checks, that will be same for both STREAM and SEQPACKET
sockets, stays in 'vsock_connectible_recvmsg()'.

Signed-off-by: Arseny Krasnov <arseny.krasnov@kaspersky.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/vmw_vsock/af_vsock.c