VSOCK: transport-specific vsock_transport functions
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 28 Jul 2016 14:36:30 +0000 (15:36 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 1 Aug 2016 23:57:28 +0000 (02:57 +0300)
commit0b01aeb3d2fbf16787f0c9629f4ca52ae792f732
tree5944394bd8b9c47a51a1249e2688e7bffd62e464
parent6190efb08c16dcd68c64b096a28f47ab33f017d7
VSOCK: transport-specific vsock_transport functions

struct vsock_transport contains function pointers called by AF_VSOCK
core code.  The transport may want its own transport-specific function
pointers and they can be added after struct vsock_transport.

Allow the transport to fetch vsock_transport.  It can downcast it to
access transport-specific function pointers.

The virtio transport will use this.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/net/af_vsock.h
net/vmw_vsock/af_vsock.c