From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27104C43461 for ; Thu, 22 Apr 2021 08:46:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EAD8F61476 for ; Thu, 22 Apr 2021 08:46:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235588AbhDVIr1 (ORCPT ); Thu, 22 Apr 2021 04:47:27 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:21747 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235435AbhDVIr0 (ORCPT ); Thu, 22 Apr 2021 04:47:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1619081211; 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=igvzL5hliAA2FzGw5dEDKa40CGCMUv5IZGyJe8BTj8Q=; b=fj62upqHzdNu2ArQpRZ0nBJamGlKZnjCzXPqLI7ETfJ/3Al19dSV3XhG1tnEE6YVN4FLnY GB5jLCrU8E3SYorDeW680Mf1beeMmUzyy5IK28yOiXCh8hZpg97WWjEzPQtukWgmMguPw5 6flop8S2n8dtiEPQq162XQi1KghmH9U= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-520-EX248QSzM6e9Tm-CxxRjpw-1; Thu, 22 Apr 2021 04:46:42 -0400 X-MC-Unique: EX248QSzM6e9Tm-CxxRjpw-1 Received: by mail-ej1-f70.google.com with SMTP id d11-20020a170906370bb029037c87968c04so6952587ejc.17 for ; Thu, 22 Apr 2021 01:46:42 -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=igvzL5hliAA2FzGw5dEDKa40CGCMUv5IZGyJe8BTj8Q=; b=QYor1Qd8wfRtsJ6RhZtkh4Po1EoZLaJXos6XHvlpAEjkKTT7bSEqCLHA3b5oSHTPnT Fu7D16iZc8MEeqtn653MrSjE/zwaDX2HQDYz/+QJACLTeMPdD5ZjTzmlYNesGYcBFt3H +hiJqr+X8dWYVm8ibH6zftXPQWe76RrqxoAAXg8KA50x6/DJI4dHYljX3tPKLAuq9FoD JWxpWheToznOQxxmByknErh9A50n2XmxhdL7lbrAMrAPytb352b8qb0Nu2F/ZfNOnpAt wYIUAtMFvZjr5BUEvfDNm2PBtD+zBrW6jNPyQCcDPL0vwWSIhFp+GevfCprF1UNWwI0G /qUg== X-Gm-Message-State: AOAM531X0BDa1dCd/bnBMh02shfbE67NIYNPrx+aCBTGgaClmh9q93xW sbgsVLhsl6I9H63/0izBFkPwixDu8W6PGx3EZeJEfdisk5Ryo60fCZw1zqYjIPmN3ICGoo/6bGj RIh/xYYt2iIHZ0nHr X-Received: by 2002:a05:6402:1a52:: with SMTP id bf18mr2410637edb.289.1619081201235; Thu, 22 Apr 2021 01:46:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMOmZX/WNU70MrtatibX4Wtl/+Aav9csAem9coMeZKqvTUqG/etSg6TxT6HkUvxXRS4imtXQ== X-Received: by 2002:a05:6402:1a52:: with SMTP id bf18mr2410622edb.289.1619081201063; Thu, 22 Apr 2021 01:46:41 -0700 (PDT) Received: from steredhat (host-79-34-249-199.business.telecomitalia.it. [79.34.249.199]) by smtp.gmail.com with ESMTPSA id q25sm1506681edt.51.2021.04.22.01.46.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Apr 2021 01:46:40 -0700 (PDT) Date: Thu, 22 Apr 2021 10:46:38 +0200 From: Stefano Garzarella To: Arseny Krasnov Cc: Stefan Hajnoczi , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Jakub Kicinski , Jorgen Hansen , Colin Ian King , Andra Paraschiv , Norbert Slusarek , 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 v8 00/19] virtio/vsock: introduce SOCK_SEQPACKET support Message-ID: <20210422084638.bvblk33b4oi6cec6@steredhat> References: <20210413123954.3396314-1-arseny.krasnov@kaspersky.com> <20210421095213.25hnfi2th7gzyzt2@steredhat> <2c3d0749-0f41-e064-0153-b6130268add2@kaspersky.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <2c3d0749-0f41-e064-0153-b6130268add2@kaspersky.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, Apr 21, 2021 at 06:06:28PM +0300, Arseny Krasnov wrote: >On 21.04.2021 12:52, Stefano Garzarella wrote: >> On Tue, Apr 13, 2021 at 03:39:51PM +0300, Arseny Krasnov wrote: >>> v7 -> v8: >>> General changelog: >>> - whole idea is simplified: channel now considered reliable, >>> so SEQ_BEGIN, SEQ_END, 'msg_len' and 'msg_id' were removed. >>> Only thing that is used to mark end of message is bit in >>> 'flags' field of packet header: VIRTIO_VSOCK_SEQ_EOR. Packet >>> with such bit set to 1 means, that this is last packet of >>> message. >>> >>> - POSIX MSG_EOR support is removed, as there is no exact >>> description how it works. >> It would be nice to support it, I'll try to see if I can find anything. >> >> I just reviewed the series. I think the most important things to fix are >> the `seqpacket_allow` stored in the struct virtio_transport that is >> wrong IMHO, and use cpu_to_le32()/le32_to_cpu() to access the flags. > >Thank You, i'll prepare next version. Main question is: does this >approach(no SEQ_BEGIN, SEQ_END, 'msg_len' and 'msg_id') considered >good? In this case it will be easier to prepare final version, because >is smaller and more simple than previous logic. Also patch to spec >will be smaller. Yes, it's definitely much better than before. The only problem I see is that we add some overhead per fragment (header). We could solve that with the mergeable buffers that Jiang is considering for DGRAM. If we have that support, I think we could reuse it here as well, but it might be a next step. Thanks, Stefano