Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp685644rwb; Wed, 7 Dec 2022 03:55:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf62ZLnyvjg58BM1DSeIpj+TIsnEabjjGqsaLMflZBpyXxJENmEAwG4Mg/QQzeAxDP4AcQy6 X-Received: by 2002:a05:6402:71a:b0:46b:1231:5f77 with SMTP id w26-20020a056402071a00b0046b12315f77mr13973688edx.244.1670414138077; Wed, 07 Dec 2022 03:55:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670414138; cv=pass; d=google.com; s=arc-20160816; b=gpyuHKZj2ky5mpw3/VSsYvybAei6G/GQzaI7XfvjNaleBvOXBHclILzp9EgsONjx1g lonf33uD741mgUkxTXh9vQVZ2d2/pSXIU5l4dzAT3yC/laCQqVQGPqsQLdkErv6kuAWP IZefuJuKrvulagrPSpFfF4CpF32JlJHSUNX7TuB7jWcYSHI6HZX70FNdyFWqmWDUJKHT Ua4dfOhOdUpI4rcMYdYsb5qtK09LEV2pAqyYc76v0Ga8VW17KDrF7BC4HWLAbrfSuIJQ gdIFF4w01/uyPvIQXIGBg6XRmGcnEHIvO+wlUbKIvNSO5DyNUkYVsgptvolqaps9SYgD 3xjA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=fZ2BJ4IQwzf+6jFnNjpBnGcsekbhsTyI1VhHD+JqKPA=; b=i3cQEec5lGELbkCOxN85dZ6gt7pD7JcW5hof50aqpSEifbsPw75XQghyDFDz/Mmq0i YkAtc+p/33WdCbh63Nk/KFNF0ndHPWYv+T7X5OAaI+xRO3k1GkEAWgHN3n0hSuUszRDh nuRbWGFV0+JIeENKmEE2QTO3ppWaxyehTjLUth1zrWatbR3+N2flh8xu5wEuPpcvTLx3 VP1iXo20X1LlHGTDpfUa7Mn9AQn4+GVsEgg/a0yt4SLKgD/uEB/VXBHPC+Zj06EmosV8 JTRqR39k7iSEQxSMtNT4GHtbYMEuGyb3QyilIMWwXZeuRsppnr4+bySAYdrlyS4lH3Em kk3Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=htHcvyR6; arc=pass (i=1); 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=outlook.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa30-20020a1709076d1e00b007ae3958c7besi15174629ejc.97.2022.12.07.03.55.19; Wed, 07 Dec 2022 03:55:38 -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=@outlook.com header.s=selector1 header.b=htHcvyR6; arc=pass (i=1); 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=outlook.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230085AbiLGLrh (ORCPT + 76 others); Wed, 7 Dec 2022 06:47:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229878AbiLGLre (ORCPT ); Wed, 7 Dec 2022 06:47:34 -0500 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04olkn2087.outbound.protection.outlook.com [40.92.75.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 227DD25E90; Wed, 7 Dec 2022 03:47:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QnUpseeFN7jdqjE9guJIbn7eS1qDVP11tLPTXvezaYn0Tw3JdAEfmR1HKaRYMwVt9h3KYVPBU3qtVskaKapanpg9RdeuaeXqiPgbXcWiWxoKOYuEXjEh7RbShYAVRO+mgaG/xQI1RFJym7/SfVrqWUaPPT7posk67fMjPNlzWzFeee5oV5VNt8PCDrb8RzbM7VP2ih7pw13A7fbUX4jkR07V+ZkWQV6NJgdVQjakjHb9iQyKqCNIjd3kieP1zr96ejfSXgR7RvgnnH5xY8oKkJiXjbPrVGsVdRWXULoo3MP6Y+ky7Ei/KrapIkkZDjIKj7wZsyz2yXPRyoF3C5fm5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fZ2BJ4IQwzf+6jFnNjpBnGcsekbhsTyI1VhHD+JqKPA=; b=YADaH9gSeCU7aoHyi8Duqc5uuD/L2EDcp5M/Qgp3C424V8e0c1ljdEd3kpwQFeq9NBwI9Gu4XJEal9fkCGJ4BIihnFOQPHZUf5Nl2V2EHrRdDjwqNJMJBct+mt0F0Oe2RoLeZFskUw46XfQ1UVgpDZIumrphx54C49Mr6c9c5ZBe33zQ4wNUP6FXbvbtAnvTaRKZ9CaEVjh8Y9TpbNfQF1rVpWSyKtlFcNp41p6sqGsR6HV3bKj/ap7oefDIy8FuBvlDew4vq5HB2xhC4PvENe23r1MwnJOpKWHazaB7uoP1prZuxY8b4E69EH/Kyomz4h5T1ShMI6ohG0yji+C6Sw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fZ2BJ4IQwzf+6jFnNjpBnGcsekbhsTyI1VhHD+JqKPA=; b=htHcvyR66JRMt4Xw1BaULMcLteqPCO0PzCY7fqID3B/UfmQyK2heEUw5gEBYvTxf5MW+pUUPIMqwxnVAm8yYq6MbOLFwRzdg2T25kGaMZmim97WFZZ1SxZTQICrrbPhXXfqWtUOxVgOJHTlu3K3eIT/zb0aI4IW/XgxZjqWr+N9cReboKVGUHLk7UeC2buiB44R+IrI9aW3JgmWvZaS+iFqiPO2FLxKx1R/2p1JB+nqHO/Rs1f2X0sVJoZUKf4khNN1Oa9os6sE8ARzkyL6mOLywhuw/KmJXfpwHhIQHJEyD8V/dYXGzRfBk4pSOig+HpjspLlyRDQBcxXC9foT2XA== Received: from DU0P192MB1547.EURP192.PROD.OUTLOOK.COM (2603:10a6:10:34b::15) by PR3P192MB0668.EURP192.PROD.OUTLOOK.COM (2603:10a6:102:4a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Wed, 7 Dec 2022 11:47:27 +0000 Received: from DU0P192MB1547.EURP192.PROD.OUTLOOK.COM ([fe80::a67b:5da2:88f8:f28b]) by DU0P192MB1547.EURP192.PROD.OUTLOOK.COM ([fe80::a67b:5da2:88f8:f28b%9]) with mapi id 15.20.5880.014; Wed, 7 Dec 2022 11:47:27 +0000 Message-ID: Date: Wed, 7 Dec 2022 19:47:15 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH bpf-next v2] bpf: Upgrade bpf_{g,s}etsockopt return values Content-Language: en-US To: Martin KaFai Lau Cc: daniel@iogearbox.net, john.fastabend@gmail.com, ast@kernel.org, andrii@kernel.org, song@kernel.org, yhs@fb.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <2118324c-a6e6-775d-77c2-75587e69e7ff@linux.dev> From: Ji Rongfeng In-Reply-To: <2118324c-a6e6-775d-77c2-75587e69e7ff@linux.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [WnwgTHvMWlEyJQpAplBnQ2ff5ZxZstH9] X-ClientProxiedBy: BYAPR05CA0102.namprd05.prod.outlook.com (2603:10b6:a03:e0::43) To DU0P192MB1547.EURP192.PROD.OUTLOOK.COM (2603:10a6:10:34b::15) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0P192MB1547:EE_|PR3P192MB0668:EE_ X-MS-Office365-Filtering-Correlation-Id: 848f6368-db80-4d5a-702a-08dad848d08a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JykCh2teTsuK89jBGKFsOOamQIqq7qb+mtG7Jhq+JtZeor+tb+XWcTvgz07A4XFz18esX2At1wYkygMNfMW5JV8lcmudpYK0DE/5PqHgyxNK+AkCll1JcmbqluSwb0GnMElMLYx+7MIJinjGiqwOYF0FubB8+V137vuinvueb9C0RbKLrAzZN3acBAcIhj91c23bTJ0MLIzLBTHad0KKQzNs+pt0dCeyTSvU54IQKY5njRoW4EXb0MZeFdBXrcva3sGMxFj7E7ATAPa4gB/BPxBGzj6HhxXSartsmxIGHhBgy0WRlfXbXnCf3Pnk2KeCm4kk2+LXua5XNE4bnhKClreJwpYv7b9zYki+pPt6WT7fPubeCm+NzBnqkvvjKqVAg4OW4bnXShvADCctQCC2Khc9Dsx/oTD0J6tcRXv87WxNWKMMhbGu2Vna17+eH/s7bqFIwGAkgqXD0JIeJ85mrSvP3KX6qYUAGjgQ6OikyYcruz9B3bcmUIAaqGVf91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3ZhaWJjbzArTnlWRzMyYzgxcGdtSUFidVgxdVVO?= =?utf-8?B?ME5mSzh1dUlQWUpsVDV0anN2SURDNk4vak0rOWFuRHBJZzBrL3hxZ0w4Q1JY?= =?utf-8?B?TVZsVG1KRmFNUG1OeVU4aGVOdjZsazVlTlB3andpbDY4UkJmeHg2SW9RPT0=?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 848f6368-db80-4d5a-702a-08dad848d08a X-MS-Exchange-CrossTenant-AuthSource: DU0P192MB1547.EURP192.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2022 11:47:27.6668 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3P192MB0668 X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_MUA_MOZILLA, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=no 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 2022/12/7 2:37, Martin KaFai Lau wrote: > On 12/6/22 8:35 AM, Ji Rongfeng wrote: >> I have noticed that this patch has been marked as "Changes Requested" >> for a few days, but there's no comment so far, which is abnormal and >> confusing. > > It is obvious that a test is needed for this change. > Sure. These unique return values will be written into documentation and widely used in production environment. So I will add some tests, to make sure that they won't be changed accidentally in the future.