RE: [PATCH net-next 08/14] vsock: add vsock_create_connected() called by transports
From: Jorgen Hansen <hidden>
Date: 2019-10-30 15:12:08
Also in:
kvm, linux-hyperv, lkml
From: Jorgen Hansen <hidden>
Date: 2019-10-30 15:12:08
Also in:
kvm, linux-hyperv, lkml
From: Stefano Garzarella [mailto:sgarzare@redhat.com] Sent: Wednesday, October 23, 2019 11:56 AM Subject: [PATCH net-next 08/14] vsock: add vsock_create_connected() called by transports All transports call __vsock_create() with the same parameters, most of them depending on the parent socket. In order to simplify the VSOCK core APIs exposed to the transports, this patch adds the vsock_create_connected() callable from transports to create a new socket when a connection request is received. We also unexported the __vsock_create(). Suggested-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> --- include/net/af_vsock.h | 5 +---- net/vmw_vsock/af_vsock.c | 20 +++++++++++++------- net/vmw_vsock/hyperv_transport.c | 3 +-- net/vmw_vsock/virtio_transport_common.c | 3 +-- net/vmw_vsock/vmci_transport.c | 3 +-- 5 files changed, 17 insertions(+), 17 deletions(-)
Reviewed-by: Jorgen Hansen <redacted>