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 2046CC6FD1E for ; Fri, 10 Mar 2023 12:44:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229844AbjCJMoG (ORCPT ); Fri, 10 Mar 2023 07:44:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbjCJMoE (ORCPT ); Fri, 10 Mar 2023 07:44:04 -0500 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A23BE1CA2; Fri, 10 Mar 2023 04:44:01 -0800 (PST) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id 053955FD0A; Fri, 10 Mar 2023 15:43:59 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1678452239; bh=Ecj4YziYruX+u/+hpmkRq2EdaLGg+P4N588WctFYdig=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; b=ook6tDDWnDeKQDE3SiRliqr7wNakuTsFfVJFtfTSEWGFqPyjoJeAobM0f4HulMh7y xw9Tp+fdTEGZqGoGHcdIP8auWf4ErQRzpbqZ/Y1FQQIWy3NX4HGLGLHDM5QKz2AxmB sDWU21lDMKO9JVdS2nqe4k7ayVXqll7f5lhUCsGhiBXjVOPyss476HXZOzJAjqiL5v w0yByWVIV6XPIt1bS23Pj68DIyViJ2JmPOP8yGTrZaOC4GVUIZASXjhWSRjBILjKq9 hSlQvi8NQg2+PjlyfYlEVVSfqxPqLIbo9hnSNEqQ/eEkOiL2QhCwLVYLnlf3XKsP+o XQJNMY91UNj6g== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Fri, 10 Mar 2023 15:43:53 +0300 (MSK) Message-ID: Date: Fri, 10 Mar 2023 15:40:51 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [RFC PATCH v4 0/4] several updates to virtio/vsock Content-Language: en-US To: Stefano Garzarella CC: Bobby Eshleman , Stefan Hajnoczi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , , , , , , References: <1804d100-1652-d463-8627-da93cb61144e@sberdevices.ru> <20230310090937.s55af2fx56zn4ewu@sgarzare-redhat> <15b9df26-bdc1-e139-8df7-62f966c719ed@sberdevices.ru> <20230310114000.6ptwpryulbvcqf5m@sgarzare-redhat> From: Arseniy Krasnov In-Reply-To: <20230310114000.6ptwpryulbvcqf5m@sgarzare-redhat> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [172.16.1.6] X-ClientProxiedBy: S-MS-EXCH02.sberdevices.ru (172.16.1.5) To S-MS-EXCH01.sberdevices.ru (172.16.1.4) 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: 2023/03/10 09:21:00 #20931590 X-KSMG-AntiVirus-Status: Clean, skipped Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10.03.2023 14:40, Stefano Garzarella wrote: > On Fri, Mar 10, 2023 at 12:42:13PM +0300, Arseniy Krasnov wrote: >> >> >> On 10.03.2023 12:09, Stefano Garzarella wrote: >>> Hi Arseniy, >>> >>> On Thu, Mar 09, 2023 at 11:24:42PM +0300, Arseniy Krasnov wrote: >>>> Hello, >>>> >>>> this patchset evolved from previous v2 version (see link below). It does >>>> several updates to virtio/vsock: >>>> 1) Changes 'virtio_transport_inc/dec_rx_pkt()' interface. Now instead of >>>>   using skbuff state ('head' and 'data' pointers) to update 'fwd_cnt' >>>>   and 'rx_bytes', integer value is passed as an input argument. This >>>>   makes code more simple, because in this case we don't need to update >>>>   skbuff state before calling 'virtio_transport_inc/dec_rx_pkt()'. In >>>>   more common words - we don't need to change skbuff state to update >>>>   'rx_bytes' and 'fwd_cnt' correctly. >>>> 2) For SOCK_STREAM, when copying data to user fails, current skbuff is >>>>   not dropped. Next read attempt will use same skbuff and last offset. >>>>   Instead of 'skb_dequeue()', 'skb_peek()' + '__skb_unlink()' are used. >>>>   This behaviour was implemented before skbuff support. >>>> 3) For SOCK_SEQPACKET it removes unneeded 'skb_pull()' call, because for >>>>   this type of socket each skbuff is used only once: after removing it >>>>   from socket's queue, it will be freed anyway. >>> >>> thanks for the fixes, I would wait a few days to see if there are any >>> comments and then I think you can send it on net without RFC. >>> >>> @Bobby if you can take a look, your ack would be appreciated :-) >> Ok, thanks for review. I'll wait for several days and also wait until >> net-next will be opened. Then i'll resend this patchset with net-next > > Since they are fixes, they should go with the net tree, not net-next. Ah ok, for net tree i can send it no matter that net-next is closed. Thanks, Arseniy > > Cheers, > Stefano >