Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1130221pxb; Wed, 16 Feb 2022 11:41:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6Fa0rYRX3mZm4sU08aW/0N4DJarXJdHKNYmHB1uwjmRksFlKlL49tViY3BE9FwJgs7LXQ X-Received: by 2002:a17:906:2ac9:b0:6ce:dc0f:9139 with SMTP id m9-20020a1709062ac900b006cedc0f9139mr3637857eje.206.1645040478868; Wed, 16 Feb 2022 11:41:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645040478; cv=none; d=google.com; s=arc-20160816; b=nhbnu7qVJwxIvHx9H+mNYB6ZL6oIwHBWsc3QdVHFMujoWbw8bXrOv+Lbv9n4aOn3iN FH6jFJumtvrmSQuxNKfDofGG3sB49lS6ZAYWdwVacBjINvbys977Pm/KkSBs/ZajQ71Z T65bo4yJyUqrfmE0cI1ERjalPeLP0pNTnkpSDwz3QSceCFncR1Zo+nG2QHPdm3Y9svxT 3xZecdoeGGmLUhk2suYcU3MWrclvQoHooUqNGkYB9UCmKNBywBf2vRjeHIK0TSCJypAu CeXonB7LZodM3mlatL4Gs56tTaa/vpd0HE1qA0l5qh8yyh8MjiVmtsExmM+dwMySh+K2 v6kA== 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=sEjX8mqvhweVPssQ3aADUg4sgNUOBaiUpJdvZM1UYNE=; b=kkjRjD/nLVnzgz6YpIcpErYmWPUYCgYtXGBK6dtwi1kb8NShbBVm7RPSr4YX8JPw12 K0ouBgE58wMiz7HiamLh61J68F7q8zLiBp4+NOcChjUoDX2Pa8GX7K8SaFHY+yDZKjeK D3TCi7u9VMQcLrltx6M1xMZ/2FSYT2couVUt/HzPlmPHXHbZoyY2lh9JNhuK8PDqBXXB wFElomX7gDm6wtfGmotK3PR9Saq3iRgxpQcKvX0gIK+fAwCfNPjeLyIA0giLPoISCV3b 9tTJnggBYUYhJ30Y6HCzkcGyltuN1sSkIz3Bawxn+qh3PQpTFDLPd30Ppxx5clipRDKP +kpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="MmdBO/3A"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q6si441574ejt.197.2022.02.16.11.40.56; Wed, 16 Feb 2022 11:41:18 -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=@google.com header.s=20210112 header.b="MmdBO/3A"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236756AbiBPQ4t (ORCPT + 99 others); Wed, 16 Feb 2022 11:56:49 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:42486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236761AbiBPQ4q (ORCPT ); Wed, 16 Feb 2022 11:56:46 -0500 Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2007215A2C for ; Wed, 16 Feb 2022 08:56:31 -0800 (PST) Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-2d0ede7dd9eso5589907b3.10 for ; Wed, 16 Feb 2022 08:56:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sEjX8mqvhweVPssQ3aADUg4sgNUOBaiUpJdvZM1UYNE=; b=MmdBO/3AvmjD6OfQEWzFtZWbpNSA/34GdDNHW1q668elbaJZYc+SFo57AjnPwoZPre eQAp39N5LlQ9DGD75Qqle3I3jkUYAhrQ6MmByH/dm7Ev6nFwIbvs+wOeCnncyIiTENb2 l3k0FjBPw9rgXCIaVN369t4lehqENpt7ss3HFj3nIU1dCIcG/e+d8ZzhSOIdG3y9iloy fkH2oAg2E3MoPxr39nJx13ZTzdXg/p1hG/Vw65BGOHn81v9ItiMEAYeUN2l9LIKBR/Hi 1NcS+mMX0bJKe/JCP6daWS8JzAfQEuX17ZyqKk50cFri0ID3xU/DL/Cuecz6xMSJ2mTK Hn3w== 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=sEjX8mqvhweVPssQ3aADUg4sgNUOBaiUpJdvZM1UYNE=; b=PWq8XRIT7fBRJv8YdD04R7VyK4KjbDkVgEglwpUFaxpWjcTlMGr2OdzFOOCLdq8mWm v4x2zxfyT7y2RWR4ddT339fBLCpKkBj/lKfVqqNIEOtM1aP0EqIWJbdHZwQFLrijtEYu zXtORRvfcE/UvAN37/FiMnhXfuf94a+uf+MtGY+F/g03aKZqbwOlZVsTObpyoyg/1oaE GWCTRF1QyRWc22P33tYUnqEo+8lJzFHO/VM3ByZuNo5P7O/I6dvy/s0nXtdVpMoZ55tK NYqj5T0QakhOZdM0uQ8YnsqgAt6myrzmc/aWaSMwcnaXRRE0YgFiiIkp43LT9XZLN4lP u52g== X-Gm-Message-State: AOAM533f0HCBTXE1FeImMMZNptjCPhL1rNRaktWTph57taZAeeg2V9Wb QICC7KR/cBOewr3x/bFLB+aWGC94XEdBNB3xo0z/VA== X-Received: by 2002:a81:75c6:0:b0:2d0:cbf8:e7b3 with SMTP id q189-20020a8175c6000000b002d0cbf8e7b3mr3167890ywc.255.1645030589922; Wed, 16 Feb 2022 08:56:29 -0800 (PST) MIME-Version: 1.0 References: <20220216050320.3222-1-kerneljasonxing@gmail.com> In-Reply-To: From: Eric Dumazet Date: Wed, 16 Feb 2022 08:56:18 -0800 Message-ID: Subject: Re: [PATCH v2 net-next] net: introduce SO_RCVBUFAUTO to let the rcv_buf tune automatically To: Jason Xing 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=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 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.