summaryrefslogtreecommitdiff
path: root/net/vmw_vsock/vsock_addr.c
diff options
context:
space:
mode:
authorReilly Grant <grantr@vmware.com>2013-04-01 22:41:52 +0400
committerDavid S. Miller <davem@davemloft.net>2013-04-02 22:39:17 +0400
commit990454b5a48babde44a23c0f22bae5523f4fdf13 (patch)
treebf5f8ac3ed45b6a2e50225496d099c6d1059a56c /net/vmw_vsock/vsock_addr.c
parent25fb6ca4ed9cad72f14f61629b68dc03c0d9713f (diff)
downloadlinux-990454b5a48babde44a23c0f22bae5523f4fdf13.tar.xz
VSOCK: Handle changes to the VMCI context ID.
The VMCI context ID of a virtual machine may change at any time. There is a VMCI event which signals this but datagrams may be processed before this is handled. It is therefore necessary to be flexible about the destination context ID of any datagrams received. (It can be assumed to be correct because it is provided by the hypervisor.) The context ID on existing sockets should be updated to reflect how the hypervisor is currently referring to the system. Signed-off-by: Reilly Grant <grantr@vmware.com> Acked-by: Andy King <acking@vmware.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/vmw_vsock/vsock_addr.c')
-rw-r--r--net/vmw_vsock/vsock_addr.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/net/vmw_vsock/vsock_addr.c b/net/vmw_vsock/vsock_addr.c
index b7df1aea7c59..ec2611b4ea0e 100644
--- a/net/vmw_vsock/vsock_addr.c
+++ b/net/vmw_vsock/vsock_addr.c
@@ -64,16 +64,6 @@ bool vsock_addr_equals_addr(const struct sockaddr_vm *addr,
}
EXPORT_SYMBOL_GPL(vsock_addr_equals_addr);
-bool vsock_addr_equals_addr_any(const struct sockaddr_vm *addr,
- const struct sockaddr_vm *other)
-{
- return (addr->svm_cid == VMADDR_CID_ANY ||
- other->svm_cid == VMADDR_CID_ANY ||
- addr->svm_cid == other->svm_cid) &&
- addr->svm_port == other->svm_port;
-}
-EXPORT_SYMBOL_GPL(vsock_addr_equals_addr_any);
-
int vsock_addr_cast(const struct sockaddr *addr,
size_t len, struct sockaddr_vm **out_addr)
{