diff options
author | Stefano Garzarella <sgarzare@redhat.com> | 2019-12-10 11:43:06 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-11 15:01:23 -0800 |
commit | 408624af4c89989117bb2c6517bd50b7708a2fcd (patch) | |
tree | 142a06268b10d4066e8315b857c299ebc5c1cba6 /net/vmw_vsock/virtio_transport.c | |
parent | 077263fba10011d7e1d17dc7691ff20c15c56081 (diff) |
vsock: use local transport when it is loaded
Now that we have a transport that can handle the local communication,
we can use it when it is loaded.
A socket will use the local transport (loopback) when the remote
CID is:
- equal to VMADDR_CID_LOCAL
- or equal to transport_g2h->get_local_cid(), if transport_g2h
is loaded (this allows us to keep the same behavior implemented
by virtio and vmci transports)
- or equal to VMADDR_CID_HOST, if transport_g2h is not loaded
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/vmw_vsock/virtio_transport.c')
0 files changed, 0 insertions, 0 deletions