Message ID | 7a7f6f28-aff2-8e4b-140a-c47be778febf@sberdevices.ru (mailing list archive) |
---|---|
State | RFC |
Headers | show |
Series | virtio/vsock: experimental zerocopy receive | expand |
diff --git a/drivers/vhost/vsock.c b/drivers/vhost/vsock.c index 191a5b94aa7c..fc6c6e667e36 100644 --- a/drivers/vhost/vsock.c +++ b/drivers/vhost/vsock.c @@ -486,6 +486,8 @@ static struct virtio_transport vhost_transport = { .stream_rcvhiwat = virtio_transport_stream_rcvhiwat, .stream_is_active = virtio_transport_stream_is_active, .stream_allow = virtio_transport_stream_allow, + .zerocopy_dequeue = virtio_transport_zerocopy_dequeue, + .zerocopy_rx_mmap = virtio_transport_zerocopy_init, .seqpacket_dequeue = virtio_transport_seqpacket_dequeue, .seqpacket_enqueue = virtio_transport_seqpacket_enqueue,
This adds zerocopy callback to vhost transport. Signed-off-by: Arseniy Krasnov <AVKrasnov@sberdevices.ru> --- drivers/vhost/vsock.c | 2 ++ 1 file changed, 2 insertions(+)