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 EE9C4C433B4 for ; Thu, 22 Apr 2021 10:03:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B4ADE61360 for ; Thu, 22 Apr 2021 10:03:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235755AbhDVKDj (ORCPT ); Thu, 22 Apr 2021 06:03:39 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:32757 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235716AbhDVKDf (ORCPT ); Thu, 22 Apr 2021 06:03:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1619085781; 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=xNNORhYicU7gfoyOCuO0kweWS4Sw8ld/VVblR3G06wg=; b=SKLRLH1HzGxeG3lIYQGjE3D4SjgWibzHNADqDIXg3ft7C4OXaTaPrNykaGU1VNJoqUPyXU BXpDq9XFuzSB7o62KQy8wDAK11TCELv9Evt0fSv1rcFawsDbeZb1juhv22i16jvMVATTtC /HPz4P3vz2NrwQlSOOSShUfBB+r5SyQ= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-402-LLmrFEsINDyg5tVMcNNQvw-1; Thu, 22 Apr 2021 06:02:21 -0400 X-MC-Unique: LLmrFEsINDyg5tVMcNNQvw-1 Received: by mail-ed1-f70.google.com with SMTP id f1-20020a0564021941b02903850806bb32so10514336edz.9 for ; Thu, 22 Apr 2021 03:02:21 -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=xNNORhYicU7gfoyOCuO0kweWS4Sw8ld/VVblR3G06wg=; b=Mvj69J39OdzaGv6ROsleNcjSnD9zhcILid4ERvhy3t/noirmtyNhkXA8Iy8WDMLhPx 6PEm9t1I5vtNMXW3Hy1Fpc55SL9vRtf9bi6XYzJ3iMlXclSgacfWNZ5tyAJ28VJqXQkd PaEQxIhgouszxxWiwrr4Kf7fQLQxpoxIHQqj3S0Bp7wtOIitt3DrQ027ySgLFX7dYQDx Fyhqpauj9OvwU+gKAJPFLM7WowQmI+ToE9Jo4x0lyMqohgXDNiLPqmRjNJ9F1KB4G9ZA l7D0Qjui/Rgz2AuYMDKK27ozHnwwhVtIRe2fHti5TOq9k2NYHyQwDN52+IHVcgePYQry 1L6w== X-Gm-Message-State: AOAM532o3I0yPIe/HGtvvL23lYsA+lLnECdA2XIhpCmEKmFaq+S04Dwl owWEqURtFSRwMNVhC6fC7BbcN3JzrAGkh28CYeqO88dCvzNbMk+Wxr8rBcF9FMJypubzmuLwkdU q89un+qOUm0lFu8fm X-Received: by 2002:a17:906:704a:: with SMTP id r10mr2573015ejj.312.1619085740358; Thu, 22 Apr 2021 03:02:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoHUf/42/0fX52T0AvMJggbGbBnbTG84Gu4+wvT51LpZ70eW/cmD2f8ZCtTt0nyd7+UiYVVg== X-Received: by 2002:a17:906:704a:: with SMTP id r10mr2572977ejj.312.1619085740170; Thu, 22 Apr 2021 03:02:20 -0700 (PDT) Received: from steredhat (host-79-34-249-199.business.telecomitalia.it. [79.34.249.199]) by smtp.gmail.com with ESMTPSA id l15sm1662876edb.48.2021.04.22.03.02.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Apr 2021 03:02:19 -0700 (PDT) Date: Thu, 22 Apr 2021 12:02:17 +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: <20210422100217.jmpgevtrukqyukfo@steredhat> References: <20210413123954.3396314-1-arseny.krasnov@kaspersky.com> <20210421095213.25hnfi2th7gzyzt2@steredhat> <2c3d0749-0f41-e064-0153-b6130268add2@kaspersky.com> <20210422084638.bvblk33b4oi6cec6@steredhat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, Apr 22, 2021 at 12:40:17PM +0300, Arseny Krasnov wrote: >On 22.04.2021 11:46, Stefano Garzarella wrote: >> On Wed, Apr 21, 2021 at 06:06:28PM +0300, Arseny Krasnov wrote: >>> 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 are talking about receive, i think, i can reuse merge logic for Yep, for TX the guest can potentially enqueue a big buffer. Maybe it's still worth keeping a maximum size and fragmenting as we do now. > >stream sockets, the only difference is that buffers are mergeable >until previous EOR(e.g. previous message) bit is found in rx queue. > I got a little lost. Can you elaborate more? Thanks, Stefano