Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1393293pxb; Wed, 16 Feb 2022 19:00:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+qY3AJMgmfyDb5b0az1PKUkjXkp0ZuVsdGGsMfKsv3ABu5fD3Cek83DyYdQruALmNyXdL X-Received: by 2002:a05:6a00:174e:b0:4e1:7cfb:7a26 with SMTP id j14-20020a056a00174e00b004e17cfb7a26mr874550pfc.50.1645066800490; Wed, 16 Feb 2022 19:00:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645066800; cv=none; d=google.com; s=arc-20160816; b=gHOJ0vF0+3lNOhxkTRrP2CWxjDlvSb6Xi8KrK/D39amBAKj8k/3jrZmdA/Lr6k7ey1 msK8MwJ6d9rdix3UL0U07vspMqb7asoxMZAWJn5aHrIc6Nh+CtGD4EkJS3Tm2Wgp8sGZ z4h6NRvJ/5mUY2yJM3S5ZTEcXYKGOCqucnekgRphS1IRqLI+O0tItqRWFX/OyGAeayVg H9w4EmCep7C8d6sZwQXqwyvkow1DB6LNWEnsvQNAMyYuQLSXZq0Ryv+YI/5KKdvprFXE EoX7J3DpbvyyGtcXxy3G4MqDuIpcVKttoePJzXosldKhdv15fLXfUi/HeCtVgoPaIkEC t4Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=OqSul6ANW/QbWM5nJmKFQS7sLKmAgK3oE6LVLATJcUM=; b=tGqaU4fUZCvKx8TM7nFKxqeTpIlPPoWGNDOUL38TIlh8rGjrmvUSsp8qfGb1ocqIci 86Y6ZVwouTQIGg0pCIztHaZ/oX+1qcvJu1oAc35KFqQY3SNJomcMzJspE2rTm5QJMPKj YfkfjxwVfYKOnBwRnLpGGb/pw2etKp2kzp28YypY8oQWANAH6Um/KnTLqhh7VCtfyjSd DFwXj4BR+ei5m5kLAppKsUUXltJ0NZH8UJJUb0X8FMFRtCAoxdfKIJcwFJEomKs5Lw9D kt87alfdQUXH/+Zl5ur08Md04dIAPeEIhr2J1pdJdyvhR+HAyrfFiRC9RRCjPKO3lssb EcUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="WBQqF/wM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w12si15981066plg.444.2022.02.16.18.59.44; Wed, 16 Feb 2022 19:00:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="WBQqF/wM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231512AbiBQCQZ (ORCPT + 99 others); Wed, 16 Feb 2022 21:16:25 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229925AbiBQCQY (ORCPT ); Wed, 16 Feb 2022 21:16:24 -0500 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 357C229410A; Wed, 16 Feb 2022 18:16:11 -0800 (PST) Received: by mail-oi1-x230.google.com with SMTP id i5so4469944oih.1; Wed, 16 Feb 2022 18:16:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OqSul6ANW/QbWM5nJmKFQS7sLKmAgK3oE6LVLATJcUM=; b=WBQqF/wMYngujPO86PUQoJDnYbW1Kza0Afi0kWbcC4O0xeaoiR1JLAlhYLxg0U+aeQ KllsxJZh6Lgfge7TFv/qJLh9On+WBvApc9b4D+lJqa3ZX9ifgfm5thq/1uzpy6IuZ8JJ +QiwUx9BS3uoNtW5HHZDddoT1cwuXMFscN4ceVgNAodPsOmdLNV9IZHFtHyrK8tca0uN 3vfjdzcpTC0q3UPHBs5RU8ts0DFVXpCm902JQft+eJBk5xrGUEVhFZhIbxmt+FBcKNC2 8tfxiWwNHAS8qK8+dH4wxodiKg7/AYMd53RPxg+inPEe6kRTNsxoGUZS25omY4Cn++Xv 9SuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OqSul6ANW/QbWM5nJmKFQS7sLKmAgK3oE6LVLATJcUM=; b=622I5myiYVuwOqlpajblyzPlIYdY2ohRRSa0BxaVpz/9yW57PRO/x/yoBNn/HpYhkh VLp+rmMInI0rC31CubOGjE37GRykVhzFdMpTpOqdt0H2hX+L0vxp1TL2ceC8uYoj8YCq XcLqcuZXV0AGyygxr9Tq1Y31Ax/ch+1XViaAyhngFBJU0U7nLT4utYXUDhCCDykRyzq0 tgieDSwbkaFCgNCHoPu+8AZZSZrcSaY0QfGcib9LTh44tHz4oGVR6Gxhs6ORboRGAj4s AfdBqOVNT9FUjrbzoy+jksj5ocjcg9QyV0Ybd6+fYr5gE/FlA4fHLGxyiNvaoQzpNpbz byAg== X-Gm-Message-State: AOAM530XBHVISi3W51B56zvIrUcw9eOh/e0uoG4oiU/JRS2hWJFLWRgX WwvDlJxCk1WGz98jbzr2+zZ2xLSPcd6kJZmx2FU= X-Received: by 2002:aca:1812:0:b0:2d4:426d:c9e0 with SMTP id h18-20020aca1812000000b002d4426dc9e0mr1835063oih.129.1645064170519; Wed, 16 Feb 2022 18:16:10 -0800 (PST) MIME-Version: 1.0 References: <20220216050320.3222-1-kerneljasonxing@gmail.com> In-Reply-To: From: Jason Xing Date: Thu, 17 Feb 2022 10:15:30 +0800 Message-ID: Subject: Re: [PATCH v2 net-next] net: introduce SO_RCVBUFAUTO to let the rcv_buf tune automatically To: Eric Dumazet Cc: David Miller , Jakub Kicinski , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Paolo Abeni , Wei Wang , Alexander Aring , Yangbo Lu , Florian Westphal , Tonghao Zhang , Thomas Gleixner , netdev , LKML , bpf , Jason Xing Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 17, 2022 at 12:56 AM Eric Dumazet wrote: > > On Tue, Feb 15, 2022 at 10:58 PM Jason Xing wrote: > > Just now, I found out that the latest kernel has merged a similar > > patch (commit 04190bf89) about three months ago. > > There you go :) > > > > > Is it still necessary to add another separate option to clear the > > SOCK_RCVBUF_LOCK explicitly? > > What do you mean, SO_BUF_LOCK is all that is needed. Yeah, I think SO_BUF_LOCK is enough and we don't have to add a new option like SOCK_RCVBUF_LOCK as we've talked about before. Thanks, Eric.