]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc1f9b60d5646cc23ee6ba2b62c27a287274d7974
tree5944394bd8b9c47a51a1249e2688e7bffd62e464
parentcae069aee479c1bc572675202bc34089cd535be8
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