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 93FFEC6FD19 for ; Fri, 10 Mar 2023 09:16:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229963AbjCJJQC (ORCPT ); Fri, 10 Mar 2023 04:16:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229910AbjCJJPP (ORCPT ); Fri, 10 Mar 2023 04:15:15 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BB2114EA5 for ; Fri, 10 Mar 2023 01:09:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678439384; 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=lsjkU85N4FNU0o/oNblF3pwjNhend/N5SR9L0EvjGbM=; b=XsoU7KIq5Y1vCyN0pFbbfCB91HnmnYTjlOwPnarFsZFdptDPVWbvpUHw3J0tYhwYTemlni oITrvRqq3RLKKjnMZl2Chxy7QllhJJNrqn+I2orJjpznTftiIvXMmX5JhbU1ZVYEAt7zIg ICCFQmNh4JTlBcibPRivKoxvAazeRio= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-614-O7Fs6qFsOuaUubcDHTvCvg-1; Fri, 10 Mar 2023 04:09:42 -0500 X-MC-Unique: O7Fs6qFsOuaUubcDHTvCvg-1 Received: by mail-wr1-f71.google.com with SMTP id i18-20020a05600011d200b002c94d861113so922647wrx.16 for ; Fri, 10 Mar 2023 01:09:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678439381; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lsjkU85N4FNU0o/oNblF3pwjNhend/N5SR9L0EvjGbM=; b=XlbQ3f/OoO2v8fWLezbD7ll4gF33QtVaVbnrVj4nuv6lGfSWAQyH1cJPsOtMZlXexm 5ncG7YDSW5fQT8/H9DwpXjs8T3G3TVQjZ+H6T01bngzZAk3nRuoZaXSPE2Af+tww6Cij 2pM4cFD+EAXrxXQVtCagxhCCjNxtiCVd7rZimHggVoMJqVRiMEJaa6dPGlyatG9g36/n bZh0NcVB/Uk3UNskCtEr2+MZQTIPXNFskYmrk5KlTLcYn6oZ4hd/8pEqw16mbIqy0jpH vGyDYIs8oFmBwry4ItLZow42FjqWahe+xK0OX6BlaW7l9zN+G1TcwLJXNqHs+0PQNlji JMug== X-Gm-Message-State: AO0yUKWpOqc/tOYNFXWPrBa1und6YLHRZpAOk8DSYzlrYuwG5jud8qqa vIdzsaGJX62zFVYXghly2SdbMnANOIzTELSh++G/rxn0JhzHhRphYF7/FFIFPJAGp7p5oH1mXx9 ynWR7/AVhzMPZRjaz4f4H/34+ X-Received: by 2002:a05:600c:5493:b0:3ea:edc7:aa59 with SMTP id iv19-20020a05600c549300b003eaedc7aa59mr1966011wmb.32.1678439381606; Fri, 10 Mar 2023 01:09:41 -0800 (PST) X-Google-Smtp-Source: AK7set82DcNAbEYxkRgzwkXhtStyGRG6ScEq9WaLV3HetEFKZK8m0CtX+X41h5pDK46UpFBKYqStZQ== X-Received: by 2002:a05:600c:5493:b0:3ea:edc7:aa59 with SMTP id iv19-20020a05600c549300b003eaedc7aa59mr1965990wmb.32.1678439381344; Fri, 10 Mar 2023 01:09:41 -0800 (PST) Received: from sgarzare-redhat (host-82-57-51-170.retail.telecomitalia.it. [82.57.51.170]) by smtp.gmail.com with ESMTPSA id n12-20020a5d67cc000000b002c8476dde7asm1539421wrw.114.2023.03.10.01.09.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 01:09:40 -0800 (PST) Date: Fri, 10 Mar 2023 10:09:37 +0100 From: Stefano Garzarella To: Arseniy Krasnov , Bobby Eshleman Cc: Stefan Hajnoczi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@sberdevices.ru, oxffffaa@gmail.com Subject: Re: [RFC PATCH v4 0/4] several updates to virtio/vsock Message-ID: <20230310090937.s55af2fx56zn4ewu@sgarzare-redhat> References: <1804d100-1652-d463-8627-da93cb61144e@sberdevices.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <1804d100-1652-d463-8627-da93cb61144e@sberdevices.ru> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 :-) Thanks, Stefano