summaryrefslogtreecommitdiff
path: root/net/vmw_vsock/vmci_transport.h
diff options
context:
space:
mode:
authorStefano Garzarella <sgarzare@redhat.com>2019-11-14 12:57:40 +0300
committerDavid S. Miller <davem@davemloft.net>2019-11-15 05:12:18 +0300
commit4c7246dc45e2706770d5233f7ce1597a07e069ba (patch)
treed069ef791a574242dc16aff9f363d350d4ee0b57 /net/vmw_vsock/vmci_transport.h
parentfe502c4a38d97e5f8b9d5602af1f07f5abc529d2 (diff)
downloadlinux-4c7246dc45e2706770d5233f7ce1597a07e069ba.tar.xz
vsock/virtio: add transport parameter to the virtio_transport_reset_no_sock()
We are going to add 'struct vsock_sock *' parameter to virtio_transport_get_ops(). In some cases, like in the virtio_transport_reset_no_sock(), we don't have any socket assigned to the packet received, so we can't use the virtio_transport_get_ops(). In order to allow virtio_transport_reset_no_sock() to use the '.send_pkt' callback from the 'vhost_transport' or 'virtio_transport', we add the 'struct virtio_transport *' to it and to its caller: virtio_transport_recv_pkt(). We moved the 'vhost_transport' and 'virtio_transport' definition, to pass their address to the virtio_transport_recv_pkt(). Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/vmw_vsock/vmci_transport.h')
0 files changed, 0 insertions, 0 deletions