From patchwork Thu May 12 05:18:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arseniy Krasnov X-Patchwork-Id: 12847046 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81FC2C433EF for ; Thu, 12 May 2022 05:19:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349519AbiELFTg (ORCPT ); Thu, 12 May 2022 01:19:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238423AbiELFTf (ORCPT ); Thu, 12 May 2022 01:19:35 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 849B41ACFAD; Wed, 11 May 2022 22:19:33 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id 8533E5FD06; Thu, 12 May 2022 08:19:31 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1652332771; bh=q2RcWNsdgZuAprNCwQFszNeiGtFEWlS8dk+02jxT2tA=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=smckDdrLTKHxtZhvHPL7axP5nLbobUR3Y4cLISMmnYb+LBwbjapbc+RPJQOPSJ/bU 06BeTURqEzjzKRUzepNhRppD4Z2odOblSELi2jfcD9dYQpo29PoZMwlAnwMOG7TEyn ibu+nPgh0zYUeNmPPj3NIGZYtt98a5lGzz6zufex+NxUiVXINFZ2H+uKpLKcpA/mhU 2Ln96+t7R94hHLqBN95OrhiFbcbPWb1tGjGnsRNCsyBVIKP/2llOTIo8IP4xmDG6hj rY4x6njPwVb917p+PsMHiobH3zxVGdjBR1du0KZw2v695OL+LKlXYrUKKFEMzzPuLz IHlPE4pRHKcxQ== Received: from S-MS-EXCH02.sberdevices.ru (S-MS-EXCH02.sberdevices.ru [172.16.1.5]) by mail.sberdevices.ru (Postfix) with ESMTP; Thu, 12 May 2022 08:19:30 +0300 (MSK) From: Arseniy Krasnov To: Stefan Hajnoczi , Stefano Garzarella , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , "Jakub Kicinski" , Paolo Abeni CC: "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , "netdev@vger.kernel.org" , kernel , Arseniy Krasnov , Krasnov Arseniy Subject: [RFC PATCH v1 6/8] virtio/vsock: enable zerocopy callback Thread-Topic: [RFC PATCH v1 6/8] virtio/vsock: enable zerocopy callback Thread-Index: AQHYZb/CBCCGHsRsTEumsu3XsE8R1A== Date: Thu, 12 May 2022 05:18:47 +0000 Message-ID: In-Reply-To: <7cdcb1e1-7c97-c054-19cf-5caeacae981d@sberdevices.ru> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.1.12] Content-ID: <163A9CE28E0AAF4CABE7459E5DE429D6@sberdevices.ru> MIME-Version: 1.0 X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2022/05/12 02:55:00 #19424207 X-KSMG-AntiVirus-Status: Clean, skipped Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-State: RFC This adds zerocopy callback for virtio transport. Signed-off-by: Arseniy Krasnov --- net/vmw_vsock/virtio_transport.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/vmw_vsock/virtio_transport.c b/net/vmw_vsock/virtio_transport.c index 43b7b09b4a0a..ea0e1567cfa8 100644 --- a/net/vmw_vsock/virtio_transport.c +++ b/net/vmw_vsock/virtio_transport.c @@ -478,6 +478,7 @@ static struct virtio_transport virtio_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, .seqpacket_dequeue = virtio_transport_seqpacket_dequeue, .seqpacket_enqueue = virtio_transport_seqpacket_enqueue,