Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp100967pxu; Thu, 3 Dec 2020 21:07:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxknKTUyeixWC6Rw+RXg4bib10ls3r2XLHxAJ2gNBduc4GfI7p0jACTXTDXlcGsE7o2Q2U X-Received: by 2002:a17:906:85cd:: with SMTP id i13mr5545051ejy.553.1607058453258; Thu, 03 Dec 2020 21:07:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1607058453; cv=pass; d=google.com; s=arc-20160816; b=eG5cyFLwMHvA8KHE+YZaQl0mQePEoz5PSZ3aKxC+mQuvNyOgAhNkSgzJceJLj7G3On wSdkAm9OAvSFqVVxp8c68S4upayIUycAI8NXObU0B6xx5Wcxd/MlPF/YdKe04hgG0m7J ieiy+suMfzsjb/qurhZ9fStExoqaK5xQW2xJWD/6mZk7CdrbSOo3GZZuYUp10gRgGP0s r2ydm1TKMHnFxjFpk1U5TypvFHDFyIw4fEiU1g2PI97kIguS93qiybDB7wmlSFYHnOQi P/EtNTruJI8dejLNwzHydstsMsM//+neBrnCabZtRpx3dvi1pyk+qrt7fUQJkNj7h8pK VZpA== 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 :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature:dkim-signature; bh=68LZFNQH5U7WeffAMaVX4k8p8kkWTfDqFhuKMP08TQY=; b=AEyuWb1b+lIGE4/ulVrj9/j6/ppzfvWKkFqQwJTAAwN2qinLVxFCXnvOANfzLde/5j SSvobRyOF3PzHWtOYcN+2iXobUGUoc4XUMuuv1cJ+aZcTW9Ki+QmDQTyrhtnjaJluaBI d6nLpilW72VIkef9eN8tB+/FDkTDJLm536HDGUZYLbFftxsb7/uV9NkA1JFyOCADwYZR KrVr3gW6ud62ZKWJVs9iIz+KpxTT8kFHIvfReeNF3X2xD9B1qAk3ca4qKapVGpYmghMm nwqtiA0Uz0gL+9pEP0UpfpzRbnMZfs7AVyJIyUGNTooSSCjAMuUInysak/ECKCzOu/UA v5+A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=A3AFPWZX; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=XST82b+H; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r9si704608ejo.134.2020.12.03.21.06.47; Thu, 03 Dec 2020 21:07:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=A3AFPWZX; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=XST82b+H; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726522AbgLDFDx (ORCPT + 99 others); Fri, 4 Dec 2020 00:03:53 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:59206 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725300AbgLDFDw (ORCPT ); Fri, 4 Dec 2020 00:03:52 -0500 Received: from pps.filterd (m0089730.ppops.net [127.0.0.1]) by m0089730.ppops.net (8.16.0.42/8.16.0.42) with SMTP id 0B44xv8R029035; Thu, 3 Dec 2020 21:02:56 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=subject : to : cc : references : from : message-id : date : in-reply-to : content-type : content-transfer-encoding : mime-version; s=facebook; bh=68LZFNQH5U7WeffAMaVX4k8p8kkWTfDqFhuKMP08TQY=; b=A3AFPWZXw4cQK2n6T/gViE4esv4eWZ7xip6qkMWiXveRbYK9ARbew9SUOviWvlS9WP6F o8BViaJrPWzlZkCSB4+74KaBdJU9XfgO9UCYUpl+PEUHvxbNsWtrOAmIuYHwxgqohYin q0YLLZh6W0uC/+IYgTW8ewQVC16sJ+ZgYWY= Received: from mail.thefacebook.com ([163.114.132.120]) by m0089730.ppops.net with ESMTP id 357682b908-6 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 03 Dec 2020 21:02:56 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (100.104.98.9) by o365-in.thefacebook.com (100.104.94.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Thu, 3 Dec 2020 21:02:53 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LmjTz/YfRNoDiH2pry7yNjysh8lNtqbHELgffOsITXZyuzGtCVFV/Q9DQpor0+dNocnZ2FZzjKtW3Oz4bxUAO4pK3wVTp2K2ziUyzOQ08LrWyuN/V+x7MPVAXrCjDi0gwEK9mb1/DW5HYrIoeezE/33Ya/xNhKZKeWz7lNAtTf0Rx320Hko4bJYzi3GJi+dvMnjojBVW6Bm47PIxyd5uipm8bS+gET5xc11GoIBgvttRR0T387MjeM3mLB/urOQ+ubyc8+3MLoaIfPMHNbzPTSgkVfd61gxJfY13ktvN3CqK4gfqD0ol0et0avBlTzAi4xhzTjSolSRWlC6mS3mwBQ== 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-SenderADCheck; bh=68LZFNQH5U7WeffAMaVX4k8p8kkWTfDqFhuKMP08TQY=; b=J/3KC7h5+Nm4yObFrfBuMF4Zo0uiuwa12oDgJgucWdN0ziXH7RDF+dN9JSYPwD/7/R4KNgMVEl3xQLpWAQ0IrVitWUz7gbK9v5xki2F9Zg/fqU+E8ak0OaoOlkGatGUzoFO0BErEaaU9Z+aTXRe+mYt86camFqUX4Wzqmm4i9x6yIEE498u+Am+QG1Wt0I5ibbRWlJwpZEZ8mjXPdBSowZvFjZZKOxIMGqXWE+PFMJZ6PQkOqDkaT+7zDyVR3wH38QF8611Bdaxku5duijTXjEgzgXvLI8mI8D1xRq9q6xdKmR0kryWT+fYBnigze8iyJV60mXtSGpktDifeT15wVQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fb.com; dmarc=pass action=none header.from=fb.com; dkim=pass header.d=fb.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector2-fb-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=68LZFNQH5U7WeffAMaVX4k8p8kkWTfDqFhuKMP08TQY=; b=XST82b+HV1k0IqTA+dieKeoyJPr8CTQ8sJcLn/z/DO+yBRwbRll4mkHpVVlQHzvPzQlpv3mB+PEv2gSYgWKRHmQG/5MMiFL9GXSdYll805XQ9zyyQ4gfScM9fGtoH5BIA55Q4kpeBuKlpmUZhyZDCzNgPb/AqWXhZBpUEF75pi8= Received: from BYAPR15MB4088.namprd15.prod.outlook.com (2603:10b6:a02:c3::18) by BY5PR15MB3713.namprd15.prod.outlook.com (2603:10b6:a03:1f8::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17; Fri, 4 Dec 2020 05:02:50 +0000 Received: from BYAPR15MB4088.namprd15.prod.outlook.com ([fe80::9ae:1628:daf9:4b03]) by BYAPR15MB4088.namprd15.prod.outlook.com ([fe80::9ae:1628:daf9:4b03%7]) with mapi id 15.20.3632.021; Fri, 4 Dec 2020 05:02:50 +0000 Subject: Re: [PATCH bpf-next v3 07/14] bpf: Add BPF_FETCH field / create atomic_fetch_add instruction To: Brendan Jackman , CC: Alexei Starovoitov , Daniel Borkmann , KP Singh , Florent Revest , , Jann Horn References: <20201203160245.1014867-1-jackmanb@google.com> <20201203160245.1014867-8-jackmanb@google.com> From: Yonghong Song Message-ID: <9e19c8e7-7d46-0dbe-619a-1b6547fc7f73@fb.com> Date: Thu, 3 Dec 2020 21:02:49 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 In-Reply-To: <20201203160245.1014867-8-jackmanb@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [2620:10d:c090:400::5:86b1] X-ClientProxiedBy: BYAPR05CA0070.namprd05.prod.outlook.com (2603:10b6:a03:74::47) To BYAPR15MB4088.namprd15.prod.outlook.com (2603:10b6:a02:c3::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2620:10d:c085:21c8::12b3] (2620:10d:c090:400::5:86b1) by BYAPR05CA0070.namprd05.prod.outlook.com (2603:10b6:a03:74::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.5 via Frontend Transport; Fri, 4 Dec 2020 05:02:50 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d472dd04-4a27-4e16-2deb-08d89811d9b2 X-MS-TrafficTypeDiagnostic: BY5PR15MB3713: X-Microsoft-Antispam-PRVS: X-FB-Source: Internal X-MS-Oob-TLC-OOBClassifiers: OLM:4502; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yHcWSsWTnjQKT2umgtgI35FlMqpp8+0rmwwernijB+ZgnbT830/FE3tukCUjFaZYBHYbiXngtLBbAmL8jIS0oolAREcf600In0nKLM6hi43DttvcM4zIK6r9lMGW/yK1a4duDus7VzKI1uLuzICrm9r3AZq9gVItjsZxPA7K8UYzK1XtLMoX7TT13kmo4LjGGHEnwdT+ovSVXBBY+R7wfi8+6vkSAnSlaAx+vej7rGRF0NLDufMZI5ialUjyuWFMJbXKzAbndcLtBNFk0Zee2Ipxg8OVA9Jd1oltAJrOh53ODgvK8+j5r+tp2kpy1RrWl3Zlh+XdDTrEgkhU/18I1pFolZu4/tu7vjt1qOyKuSLlu2Omqhgkla1A9LFbOq1nbQyB1YsHU3s3jdLxzIRJqzq4El2P2f8W6o16K5XRPWM= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR15MB4088.namprd15.prod.outlook.com;PTR:;CAT:NONE;SFS:(396003)(376002)(39860400002)(136003)(366004)(346002)(2616005)(31686004)(83380400001)(16526019)(54906003)(6486002)(4744005)(86362001)(316002)(36756003)(5660300002)(8936002)(8676002)(478600001)(53546011)(66476007)(31696002)(66946007)(186003)(4326008)(66556008)(2906002)(52116002)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?TERja0swL05JRjVxTERINy9oOUQya25LK2VpUkdlQTNCM3JaTkdUWWF2c2Rz?= =?utf-8?B?cWEwd3pmUlN0aHJRRjNybEh6VjB2Y1gvVjhGSEwwNUErd2FXMmphVFFRMzhp?= =?utf-8?B?eFAzRWRQbGd1NVJhdWV6MDVlWXVxTjdlNXBjaVdqZXNqK3pKRFNs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FJU1Rk?= =?utf-8?B?T1JUOUxqdjJ5VFdVRzlMZnMyTHpXeVl6ZTVPWnVVYXF3a05Rb3V4cGZubTkr?= =?utf-8?B?aUtucjRVWkRjUGttcnhUQ1RyMHhMd2I1WTRad3Vldk4xR1d3TjZXWG5FVUt0?= =?utf-8?B?VVhUOTlSTk9PMWQvcDZwbHZ4NkxXUHVudUhQdnFuTGFXNVNnaW4zOUQ5TXFF?= =?utf-8?B?NWF1NWxLUzR4anhnczY4bjNZTUx0eG5NUCt4ZUgwdnA4T0VrR1daV2xUeFpj?= =?utf-8?B?QVRIenh1cHBEc2xUbEh6NTR1QWdMZ1EvQ2pFTzAyM2o0cWc3bnI1eE1wbUpp?= =?utf-8?B?WUYxeHBIUWtrZFE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: d472dd04-4a27-4e16-2deb-08d89811d9b2 X-MS-Exchange-CrossTenant-AuthSource: BYAPR15MB4088.namprd15.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2020 05:02:50.8273 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0vVvZJgku9WSXIMNB+E0heCQ3Qk2tgwp5SK1Hwp3g3KQEdUz/Kc41T+2vNCON9/G X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR15MB3713 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-12-04_01:2020-12-04,2020-12-04 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 mlxscore=0 spamscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 clxscore=1015 adultscore=0 mlxlogscore=754 suspectscore=0 lowpriorityscore=0 phishscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012040028 X-FB-Internal: deliver Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/3/20 8:02 AM, Brendan Jackman wrote: > This value can be set in bpf_insn.imm, for BPF_ATOMIC instructions, it is not clear what "this value" means here. Maybe more specific using "The BPF_FETCH field"? > in order to have the previous value of the atomically-modified memory > location loaded into the src register after an atomic op is carried > out. > > Suggested-by: Yonghong Song > Signed-off-by: Brendan Jackman Ack with the above nit. Acked-by: Yonghong Song