Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5201011rdb; Wed, 13 Dec 2023 01:42:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IHIQ7G5nVq9/NkVTAAIbc9Vvh0vYBTyXyk8K2UceioPdQcUMz+pyzeukRVnueslJNSzRsdW X-Received: by 2002:a17:902:ec8a:b0:1d0:6ffd:9df4 with SMTP id x10-20020a170902ec8a00b001d06ffd9df4mr10076244plg.70.1702460548794; Wed, 13 Dec 2023 01:42:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702460548; cv=none; d=google.com; s=arc-20160816; b=nBDcRl2yi6gHwHKaPhCrgA23UJ/VKvGgZOYkdaIARSp8HCLJItRRJxC09qIJdkUVMI gOtPYCYbcwR4mZ7/SQ8cBVPpWH7g/UCV7LKDrw4cyWPIfyBBjMqo7hD8ancmnJI/XmRn 0OUync6LmlIGV2IyTg4hFsotSN8eCQx1Q5+gR+IWtALM/RybzmmHcKE9nJv67Q2/p/XD YND4Jp1uUNvh3gKrLxR6TXhDyzl1Rr3IKcHeQB7C/DY+j7HWZryVH4fV7sKwLXyh4uqk 6gwxjLm/wBl5EzBpERLJKdtMQ0uQXxptln9mIqpHCoseCOiFyskJlKEE7vp61bOFkQy2 VteA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XMjiM4LhWNswCgPTt5l6t+VxQtdI2J7qu3AHHUQiHmI=; fh=0mJ/jGmZ0v6b8ZW85DH4CXGjTGrXcvNnJ+jC1oCQQkQ=; b=FbeD5+Mngk8/1bDP9k0vxsXmfJlsvAzPmHRUzAt71FCvcO0yHpD1LC0NC0M95MClPX wN5Wk6fzNqCtOa8Y/cLAaI3UrEIZNl+IoJgvoq27qi9qWe+mn6+VrwXVi9V+4RPtn19m XqB4LSciRD3BpMeF8OtSL8D3xMHcG/Cb6dE2qgloaBal9YpgdLvz393qTTQiU3zQ/ykw 0qcoYbdF1tcva6lalpgdBIRSiOHunPeGHbA8LK1FFHu4pAdlDsfLxziBoPhI4CeqmEJj ++10ERc1/lwmqHGAcV34z7fMw3UbBx1IByPLu2jHvjUQB77SLD+KRRJQ1TJNOGWKz2/O oN9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GIUvcw98; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id w13-20020a170902a70d00b001cfb4bd0b83si9205477plq.439.2023.12.13.01.42.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 01:42:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GIUvcw98; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id EC9628087DDF; Wed, 13 Dec 2023 01:42:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232956AbjLMJlz (ORCPT + 99 others); Wed, 13 Dec 2023 04:41:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjLMJlx (ORCPT ); Wed, 13 Dec 2023 04:41:53 -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 AD006BD for ; Wed, 13 Dec 2023 01:41:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702460519; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XMjiM4LhWNswCgPTt5l6t+VxQtdI2J7qu3AHHUQiHmI=; b=GIUvcw98ZbW/qaIIzD7fJdTiCdHxpj3LPgdXmN1PDZ6tMv1HK6WWdd2siTTNA2ORhvERTp 96iZFoRRFYk51J2kWSpiHzgJX5FK+iXSNu8ZtmklYDVEWjw8dz06nZ5Vgz8RacaPY4NQar Y5/Xadsm2+m45IxQL4scDlr2Z2cxtiI= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-556-wTntITo8NYePENDuH73tjg-1; Wed, 13 Dec 2023 04:41:57 -0500 X-MC-Unique: wTntITo8NYePENDuH73tjg-1 Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-50be5bdae9fso5271088e87.1 for ; Wed, 13 Dec 2023 01:41:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702460516; x=1703065316; h=in-reply-to:content-transfer-encoding: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=XMjiM4LhWNswCgPTt5l6t+VxQtdI2J7qu3AHHUQiHmI=; b=mFiFBC4tK52j8qLRI0RoO+3CZQKqtPCky2A9C13iFk+AyZB8fyPdXj/iv4x67pS1f/ 2bhZ7XVKvF1pa5DtlOtNU9G59qbYwlVebmbyuwhK/seUQmRFNlU41EG3h+HnNLj0RK6k kZgJUfry6B1m9i2sz7kzpeTdy9QQ0+7LuZ1GPTDxDwce/YwzJVFvnarcQlN/Nb3RhbpS mvwB+cVt3/lVs2z6koNiZZiz3OZwe7RYHKblUeG4OfcRVzc8b/mDRDtvUPaYkiKZzNRM lqm2slXEyPi7b88h0CdL1m8p4KfJjeHnuhQB61xhPqQDVDdWNQASbrk4navct+mixP6A XBxg== X-Gm-Message-State: AOJu0YzAY847LbjtmZCGLchvj61BcbLCoPw9e/A01T5XRztmrfTxV+Xk HgVT93WUlFvPsoAm2a6sSunVDpTcFoBAYFeJeGhwonrUgdnc+fWZsZCDsl7jRipNEQpWyoEcviU 3G9a8oxX7ygUwFauJmnBh5Ll/ X-Received: by 2002:a05:6512:3eb:b0:50b:e5bf:cd08 with SMTP id n11-20020a05651203eb00b0050be5bfcd08mr2969692lfq.0.1702460515810; Wed, 13 Dec 2023 01:41:55 -0800 (PST) X-Received: by 2002:a05:6512:3eb:b0:50b:e5bf:cd08 with SMTP id n11-20020a05651203eb00b0050be5bfcd08mr2969675lfq.0.1702460515420; Wed, 13 Dec 2023 01:41:55 -0800 (PST) Received: from sgarzare-redhat ([5.179.184.12]) by smtp.gmail.com with ESMTPSA id e4-20020a5d65c4000000b003333ed23356sm12977633wrw.4.2023.12.13.01.41.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 01:41:54 -0800 (PST) Date: Wed, 13 Dec 2023 10:41:47 +0100 From: Stefano Garzarella To: Arseniy Krasnov Cc: "Michael S. Tsirkin" , Stefan Hajnoczi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jason Wang , Bobby Eshleman , 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: [PATCH net-next v8 0/4] send credit update during setting SO_RCVLOWAT Message-ID: References: <20231211211658.2904268-1-avkrasnov@salutedevices.com> <20231212105423-mutt-send-email-mst@kernel.org> <20231212111131-mutt-send-email-mst@kernel.org> <7b362aef-6774-0e08-81e9-0a6f7f616290@salutedevices.com> <402ea723-d154-45c9-1efe-b0022d9ea95a@salutedevices.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <402ea723-d154-45c9-1efe-b0022d9ea95a@salutedevices.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 13 Dec 2023 01:42:26 -0800 (PST) On Wed, Dec 13, 2023 at 12:08:27PM +0300, Arseniy Krasnov wrote: > > >On 13.12.2023 11:43, Stefano Garzarella wrote: >> On Tue, Dec 12, 2023 at 08:43:07PM +0300, Arseniy Krasnov wrote: >>> >>> >>> On 12.12.2023 19:12, Michael S. Tsirkin wrote: >>>> On Tue, Dec 12, 2023 at 06:59:03PM +0300, Arseniy Krasnov wrote: >>>>> >>>>> >>>>> On 12.12.2023 18:54, Michael S. Tsirkin wrote: >>>>>> On Tue, Dec 12, 2023 at 12:16:54AM +0300, Arseniy Krasnov wrote: >>>>>>> Hello, >>>>>>> >>>>>>> ?????????????????????????????? DESCRIPTION >>>>>>> >>>>>>> This patchset fixes old problem with hungup of both rx/tx sides and adds >>>>>>> test for it. This happens due to non-default SO_RCVLOWAT value and >>>>>>> deferred credit update in virtio/vsock. Link to previous old patchset: >>>>>>> https://lore.kernel.org/netdev/39b2e9fd-601b-189d-39a9-914e5574524c@sberdevices.ru/ >>>>>> >>>>>> >>>>>> Patchset: >>>>>> >>>>>> Acked-by: Michael S. Tsirkin >>>>> >>>>> Thanks! >>>>> >>>>>> >>>>>> >>>>>> But I worry whether we actually need 3/8 in net not in net-next. >>>>> >>>>> Because of "Fixes" tag ? I think this problem is not critical and reproducible >>>>> only in special cases, but i'm not familiar with netdev process so good, so I don't >>>>> have strong opinion. I guess @Stefano knows better. >>>>> >>>>> Thanks, Arseniy >>>> >>>> Fixes means "if you have that other commit then you need this commit >>>> too". I think as a minimum you need to rearrange patches to make the >>>> fix go in first. We don't want a regression followed by a fix. >>> >>> I see, ok, @Stefano WDYT? I think rearrange doesn't break anything, because this >>> patch fixes problem that is not related with the new patches from this patchset. >> >> I agree, patch 3 is for sure net material (I'm fine with both rearrangement or send it separately), but IMHO also patch 2 could be. >> I think with the same fixes tag, since before commit b89d882dc9fc ("vsock/virtio: reduce credit update messages") we sent a credit update >> for every bytes we read, so we should not have this problem, right? > >Agree for 2, so I think I can rearrange: two fixes go first, then current 0001, and then tests. And send it as V9 for 'net' only ? Maybe you can add this to patch 1 if we want it on net: Fixes: e38f22c860ed ("vsock: SO_RCVLOWAT transport set callback") Then I think that patch should go before patch 2, so we don't need to touch that code multiple times. so, IMHO the order should be the actual order or 3 - 1 - 2 - 4. Another option is to send just 2 & 3 to net, and the rest (1 & 4) to net-next. IMHO should be fine to send the entire series to net with the fixes tag also in patch 1. Net maintainers and Michael might have a different advice. Thanks, Stefano