linux-stable/drivers/vhost
Stefano Garzarella 8a39664066 vsock/virtio: add transport parameter to the virtio_transport_reset_no_sock()
[ Upstream commit 4c7246dc45 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-14 09:51:06 +02:00
..
Kconfig
Kconfig.vringh
Makefile
net.c vhost: Check docket sk_family instead of call getname 2020-03-11 18:02:56 +01:00
scsi.c vhost: scsi: add weight support 2019-07-10 09:54:42 +02:00
test.c vhost/test: fix build for vhost test 2019-09-16 08:20:45 +02:00
test.h
vhost.c vhost: make sure log_num < in_num 2019-09-16 08:20:46 +02:00
vhost.h vhost: introduce vhost_exceeds_weight() 2019-07-10 09:54:42 +02:00
vringh.c
vsock.c vsock/virtio: add transport parameter to the virtio_transport_reset_no_sock() 2020-10-14 09:51:06 +02:00