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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D94FC433FE for ; Thu, 17 Feb 2022 02:16:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231506AbiBQCQZ (ORCPT ); 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-Google-Smtp-Source: ABdhPJzaclshwR5cQLstIxZ+jLltu47WD/h0Kg9Bcy075XYW5dO9RoFPJYY+ZUKRXE7u1rvnBgs2iud51CDLXZSO/AE= 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" Precedence: bulk List-ID: X-Mailing-List: netdev@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.