Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp266741pxf; Thu, 25 Mar 2021 03:44:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJbNLr/7wOLmA5HYAa86Y9p2eavdkZ5rSRDDtL7ZLC2r9xWB1nps4S4G33cdXzQsLmTNss X-Received: by 2002:a17:906:a2d3:: with SMTP id by19mr8508523ejb.98.1616669047724; Thu, 25 Mar 2021 03:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616669047; cv=none; d=google.com; s=arc-20160816; b=ZQqqR7zr6DAcyu2q9etwAPneKrdPJsH2ZaqxnJqzBcnya6ZF4d5hikaOMFKyD8IDhv 0WpGJ4MbjIWaHGh8IwoBq+kl9C5qCe78b6037hKT6lScRB5AV1tSNNjTB99FULNP5nVI IB/ITpdtEwVa8mWHz1MzDNzvFBUPDL6maMDQ+EzJEeCcYj3Uf39Jomq0ATcoxqOi2aRd oXIRbop0wOOb0KoL4Vio/uvChtFZ8gQVcmwSi+TRa+Fq9CleJ9y7vcGFB1pa23BLUN44 6y3zcefpySM2UDBkqT0VbfwCXDkkzp/lkMD8QoUQyc9ATioNdA+Dws23LavgPnVFQWvH GWiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/kpD2aeNiHkluUl+lY5UKmHgOwXffwSQz+l4fa/jph4=; b=PVnrVf+mPRShWhYA07W50WEU923WKBe4Rx9d0rEudoba2AYkVnNfcZrbdceMKMSzSq J+3puSmHkADGTM8v+dmoHaHHenfVeJKOv/ectH7/9N12kBNkVxZq/a+J6k0jHtfoIzHs IgvbPpSxdw+ggd3oq/P8+kuQ0F4D+jJCyvJiGjohvB8Sho5NNkw/1StNPuhhd7PBm8pp HUXOT+QmuYA2+Gi86UkpT4Rtq+R8iw5esacnl6qbnrZmbSIrxmyoex45MoWypEMmvg1W ijzX8trMwhExpI88R6WWCVrHHCI/IkTY5j5KAE7f9YiOi+Lr08tVYKLCPa6lWVCBYYI9 Sjuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="cnu+/53s"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t4si3931508ejd.376.2021.03.25.03.43.35; Thu, 25 Mar 2021 03:44:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="cnu+/53s"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230217AbhCYKk3 (ORCPT + 99 others); Thu, 25 Mar 2021 06:40:29 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:48844 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229854AbhCYKj5 (ORCPT ); Thu, 25 Mar 2021 06:39:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616668796; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/kpD2aeNiHkluUl+lY5UKmHgOwXffwSQz+l4fa/jph4=; b=cnu+/53sQdcj1f2aVCX1bdB85aJOH69WeDUYsurcz0forrowm5FxZqvcbJBTqteiEzceer duOczffPczCXzMV4SPGRb4010DkK0ew2GWh+KiXQFU9pBtcQkO+s2muus1G0dwAyn61P+Y mwleDr2GrRYZsh36qTiYqK6EJo5LCR4= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-578-xHd6uyUyMVakeZDHKjdIzA-1; Thu, 25 Mar 2021 06:39:55 -0400 X-MC-Unique: xHd6uyUyMVakeZDHKjdIzA-1 Received: by mail-wm1-f69.google.com with SMTP id r65-20020a1c2b440000b029010f4ee06223so783340wmr.1 for ; Thu, 25 Mar 2021 03:39:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/kpD2aeNiHkluUl+lY5UKmHgOwXffwSQz+l4fa/jph4=; b=qps6Ea0tbdfEUjK20WSAmEmcZu/AEirUeAJVyj4KgdBiQt+R/Df0zYoFASr5tiX94o Ayzle8gwrSzBU80RrcSLQQ8Ff8Wvp1cEOV0qPEl73nIoa78S01DpRIHEKecTZSujqKM8 aOjrNUXcO6y81v45y81BYye2NPu0ByrPY9VZfdhzYeE7NOLwe/xCcc0oaZzHopJJTdc8 MWWxPjwyS1c9DDB2eKqdjIH2eKYy/uZo4+MOtYBrwQTURvvPv9w/w7khZA91AgIOmvoD nzBEDRZwvBy8tXhgHPIYW2Uo9+XV/EC+I1fk6+3pLFDrjewhv4FuYbyLqntu5QjuzNyC b4Sw== X-Gm-Message-State: AOAM532L0etRe9a4w/NjaD6p6PHIc6gHP/i6KeBjJYJByxk6l37OOr48 pTaqbL0pDHNef/OdsQ3onPt++Qxc5AH1lbZ5YCVQF3OAwX+oh8aGi7u8AGRL/P2ne6SGZr1/JOB u2fvHeIagBA5quagpsihhN0l5 X-Received: by 2002:a5d:56d0:: with SMTP id m16mr8193212wrw.355.1616668793957; Thu, 25 Mar 2021 03:39:53 -0700 (PDT) X-Received: by 2002:a5d:56d0:: with SMTP id m16mr8193189wrw.355.1616668793779; Thu, 25 Mar 2021 03:39:53 -0700 (PDT) Received: from steredhat (host-79-34-249-199.business.telecomitalia.it. [79.34.249.199]) by smtp.gmail.com with ESMTPSA id c2sm6099603wmr.22.2021.03.25.03.39.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Mar 2021 03:39:53 -0700 (PDT) Date: Thu, 25 Mar 2021 11:39:50 +0100 From: Stefano Garzarella To: Arseny Krasnov Cc: Stefan Hajnoczi , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Jakub Kicinski , Jorgen Hansen , Andra Paraschiv , Colin Ian King , Norbert Slusarek , Jeff Vander Stoep , Alexander Popov , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stsp2@yandex.ru, oxffffaa@gmail.com Subject: Re: [RFC PATCH v7 16/22] virtio/vsock: setup SEQPACKET ops for transport Message-ID: <20210325103950.7k75hntees5ppgbm@steredhat> References: <20210323130716.2459195-1-arseny.krasnov@kaspersky.com> <20210323131406.2461651-1-arseny.krasnov@kaspersky.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210323131406.2461651-1-arseny.krasnov@kaspersky.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 23, 2021 at 04:14:03PM +0300, Arseny Krasnov wrote: >This adds SEQPACKET ops for virtio transport and 'seqpacket_allow()' >callback. > >Signed-off-by: Arseny Krasnov >--- > net/vmw_vsock/virtio_transport.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) Sorry for not mentioning this in the previous review, but maybe we can merge this patch with "virtio/vsock: SEQPACKET feature bit support", so we have a single patch when we fully enable the SEQPACKET support in this transport. Anyway, I don't have a strong opinion on that. What do you think? Stefano > >diff --git a/net/vmw_vsock/virtio_transport.c >b/net/vmw_vsock/virtio_transport.c >index 2700a63ab095..83ae2078c847 100644 >--- a/net/vmw_vsock/virtio_transport.c >+++ b/net/vmw_vsock/virtio_transport.c >@@ -443,6 +443,8 @@ static void virtio_vsock_rx_done(struct virtqueue *vq) > queue_work(virtio_vsock_workqueue, &vsock->rx_work); > } > >+static bool virtio_transport_seqpacket_allow(void); >+ > static struct virtio_transport virtio_transport = { > .transport = { > .module = THIS_MODULE, >@@ -469,6 +471,10 @@ static struct virtio_transport virtio_transport = { > .stream_is_active = virtio_transport_stream_is_active, > .stream_allow = virtio_transport_stream_allow, > >+ .seqpacket_dequeue = virtio_transport_seqpacket_dequeue, >+ .seqpacket_enqueue = virtio_transport_seqpacket_enqueue, >+ .seqpacket_allow = virtio_transport_seqpacket_allow, >+ > .notify_poll_in = virtio_transport_notify_poll_in, > .notify_poll_out = virtio_transport_notify_poll_out, > .notify_recv_init = virtio_transport_notify_recv_init, >@@ -483,8 +489,14 @@ static struct virtio_transport virtio_transport = { > }, > > .send_pkt = virtio_transport_send_pkt, >+ .seqpacket_allow = false > }; > >+static bool virtio_transport_seqpacket_allow(void) >+{ >+ return virtio_transport.seqpacket_allow; >+} >+ > static void virtio_transport_rx_work(struct work_struct *work) > { > struct virtio_vsock *vsock = >-- 2.25.1 >