aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/vhost/vsock.c
diff options
context:
space:
mode:
authorBobby Eshleman <bobby.eshleman@bytedance.com>2023-03-27 19:11:51 +0000
committerDavid S. Miller <davem@davemloft.net>2023-03-29 08:19:38 +0100
commit634f1a7110b439c65fd8a809171c1d2d28bcea6f (patch)
treec177884c45da08c7552518f7215d1d6555dc2863 /drivers/vhost/vsock.c
parenttesting/vsock: add vsock_perf to gitignore (diff)
downloadwireguard-linux-634f1a7110b439c65fd8a809171c1d2d28bcea6f.tar.xz
wireguard-linux-634f1a7110b439c65fd8a809171c1d2d28bcea6f.zip
vsock: support sockmap
This patch adds sockmap support for vsock sockets. It is intended to be usable by all transports, but only the virtio and loopback transports are implemented. SOCK_STREAM, SOCK_DGRAM, and SOCK_SEQPACKET are all supported. Signed-off-by: Bobby Eshleman <bobby.eshleman@bytedance.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/vhost/vsock.c')
-rw-r--r--drivers/vhost/vsock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vhost/vsock.c b/drivers/vhost/vsock.c
index c8e6087769a1..6578db78f0ae 100644
--- a/drivers/vhost/vsock.c
+++ b/drivers/vhost/vsock.c
@@ -439,6 +439,7 @@ static struct virtio_transport vhost_transport = {
.notify_send_post_enqueue = virtio_transport_notify_send_post_enqueue,
.notify_buffer_size = virtio_transport_notify_buffer_size,
+ .read_skb = virtio_transport_read_skb,
},
.send_pkt = vhost_transport_send_pkt,