Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp94541pxu; Thu, 3 Dec 2020 20:55:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrdQa/AGKZe1Bhi5GXxud/HVa1IyqHhxtjsAKomzJV8zfsj35hHlQ9SL9hpNgafRoGJUL2 X-Received: by 2002:a17:906:4982:: with SMTP id p2mr5449234eju.416.1607057701777; Thu, 03 Dec 2020 20:55:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1607057701; cv=pass; d=google.com; s=arc-20160816; b=jGbpMsVjcnKBzatK4PGuWJXsdbigldjfi5JX1kdJOJWnDJmipnnXshtz1ZiMFvSvHg dxYRWVGkNWa7KrKJsizlR1Db0t7ADrcJOsoX9Mh3R+Fq+MizJXwag4z8UAZCcgSrBlDA UKlx1CIEH70aj6/kcpmu9E4bXTqp8tPmxxlyMrr2T4kCQh3DUBaVazJusbIOpr0vDYpU ymK4CSxu8aB2rsyFtq8sQIVXQMoSfaPg/qNpcKqZ5NZhGGS5t+2/RLaSayHzMAC3w/Bt uBUx5ubJX8jlBbNyZq+AFroLUyIFHHr40ig8L5dg+y49q29A9x2IYzEICeW5asLAHuhs vAMg== 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=PQzUIns0TeDI0qJuGS+2bKr4/vipiWlGSwe4pYzbSoY=; b=KCKxvUkWi1Bfr4YPDpbat4zTxtU1PumxIaxKwqaIUfxyKwjygrRIWD8k2ANTnWkc4c lhp5GKsPs/i0ITn+j9VP95m2lk7kkXzM45Y9vHxtGng+4IvCwT9bIOsWYJ0gzk6R5Ddg Uqhx+ofTp62AlP4GfIM7YSJ2TsTFXdTOEGdbWmAgrCXZG/8da+70wQXcU46BgrNsGi99 B2JMClOfCo1bZ7J+h1zhrX/04AaUFBCFiXRKWUvHIhj5f3Zy/0SjTrBL1hi8w+JTJR/2 yfJsnOPHW2YshVR8cygLF2qY9K4AGppbWBOH07lnatjY0mV8BcEtzIzdMtzzH0nK5TDl b3UA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=XCtAbyZa; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b="jf/r13Jb"; 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 q6si688093ejb.731.2020.12.03.20.54.39; Thu, 03 Dec 2020 20:55:01 -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=XCtAbyZa; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b="jf/r13Jb"; 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 S1727681AbgLDEv2 (ORCPT + 99 others); Thu, 3 Dec 2020 23:51:28 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:57116 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725989AbgLDEv1 (ORCPT ); Thu, 3 Dec 2020 23:51:27 -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 0B44hwkP002370; Thu, 3 Dec 2020 20:50:29 -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=PQzUIns0TeDI0qJuGS+2bKr4/vipiWlGSwe4pYzbSoY=; b=XCtAbyZaRx2cSEmxoQFA/VLPLGeKn97ik+jmkAKDQztJ7zJtmoo98VGWjZmKILJCJZXu 3ZwQO/ByZ7zoI9ezYoz/WntS28RiU3GyXsSNHCNITyxIo1x9dICo79lVGZnRlmyRDrQQ zJeZbpoKwueqWBl7ULOeeNPAXTHK7gmLF/4= Received: from maileast.thefacebook.com ([163.114.130.16]) by m0089730.ppops.net with ESMTP id 357682b74x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 03 Dec 2020 20:50:29 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (100.104.31.183) by o365-in.thefacebook.com (100.104.36.102) 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 20:49:55 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VNzWDf0fIGggTHxL7xTuGaOIGEQqYG00brU8lRzSvKnhVTqdfnIreqdfACLZuXMDKHDW21ZX815IvpEi4UTbWcOj4a+56GBg3J+sgypk1ts3iDjcrzSaspzsjsRrmuStUCgCqbVU8kaDzxgn+NR14RI0CmKm6dro5LiGhYR4lGU4mE43BqGS/xLUKa6Q/5YrTY3n3W4i5yJVqJuRdOXvDGB27DlmicrTuOz9MeU5QTGArWzIjXJ2Jtfs6afgUL8aHNQ0ti2Rn9CtbN/i9QaUgYsQfr1rY217FN+rTB8wefZRv63Hwo9vU/nZT6olpNaX1WE+hGVICJWE/Zhc94+Iyw== 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=PQzUIns0TeDI0qJuGS+2bKr4/vipiWlGSwe4pYzbSoY=; b=ZmCCrDuB7G3tsanrHKjy+wEQ0Uq/Q8pzvF5+QHlcXF/Ajx8URAcDddzWDCmGC2M1tGO6QyhE0CcyxtruaAcbfOf7yEwc2fO3tq9/nYD8DLQqkj6dWxoBk9INZta9pmlUOSq3KLmZnY5i1xJPJ7z5gZadlPEejPYcy+wNBK7q2jjlO9Fo8V8+B+SuwN0TSlQAsSWfyKi5LjV2zm0ruZ2x4LGkg6dlYAdaqHHh1hViWdeeNtICL+Es+6nvGkKEVQ4OvOQUjSM+sobYAmaEzOnxCYj1LMk3l2SXP2tTWcCV0zKsPA31JsPRHS9HHm/w3MbWfjG6utT+I8dI8rCRUxj0AQ== 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=PQzUIns0TeDI0qJuGS+2bKr4/vipiWlGSwe4pYzbSoY=; b=jf/r13JbK61/d8YxeWcC+o8gBOE/DCOJFM33ysOKWskw1mRHiiEctAxf1esFO9IfWSyvPhZ6aPr4bgRXmLZX2MZCQZiJ7q/hNVQCw3vqQGF3Vo7cJZZMwpRHPcdKW65BLiBhkbU0+VpqexFvTQPFj0WqbrOGuVT4mM86J5sJVTs= Received: from BYAPR15MB4088.namprd15.prod.outlook.com (2603:10b6:a02:c3::18) by BYAPR15MB4117.namprd15.prod.outlook.com (2603:10b6:a02:c1::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.21; Fri, 4 Dec 2020 04:49:52 +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 04:49:52 +0000 Subject: Re: [PATCH bpf-next v3 05/14] bpf: Rename BPF_XADD and prepare to encode other atomics in .imm To: Brendan Jackman , CC: Alexei Starovoitov , Daniel Borkmann , KP Singh , Florent Revest , , Jann Horn References: <20201203160245.1014867-1-jackmanb@google.com> <20201203160245.1014867-6-jackmanb@google.com> From: Yonghong Song Message-ID: <33df38b3-60a6-9408-dfa7-f10b6273b226@fb.com> Date: Thu, 3 Dec 2020 20:49: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-6-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: CO2PR04CA0141.namprd04.prod.outlook.com (2603:10b6:104::19) 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 CO2PR04CA0141.namprd04.prod.outlook.com (2603:10b6:104::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Fri, 4 Dec 2020 04:49:51 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0254ebb3-817f-43a4-af10-08d8981009c8 X-MS-TrafficTypeDiagnostic: BYAPR15MB4117: X-Microsoft-Antispam-PRVS: X-FB-Source: Internal X-MS-Oob-TLC-OOBClassifiers: OLM:4125; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wiwHsQJCYrUCO7eUcRrNMIpXQ7zztiztqMcn1hFNsfQYo6w+ACJsJA2FZvaLQ4ZTge+r9JIpmMIF6Ck49DUjftXlBrvpKwf1H7Qt4O8Yk04lD/NrOYvhtAwJv8ZvuhW1r69+QNar0DdMSnZsdXuCBntmvG4g4+lf5wTeJ9sACNvPPihkW66/3PzFAWBfveNbfqTxj3/LzLAswzWwP09VxizrH6SVbijhpelTLLUjkXIAKXlLCs5Hy8b+uMJoZFN3tBlIhcyQLTIkBMT9c9ZCLEaXgW3aSRAIz9vS9jSwQkjFSICosYU6zLRomUN/YrGiJm6K7xD2k29ib4a/dCIS3pct4OK94AOxfUz3i9dztV0Rm0Olv1abS9H9YY+C+pMfB3wWTBZ9vKVjFS/GQuoYs/EgSH1I+1MIIZCrqAb6dGSwMFk2LOuS5KmeYPsKOADh 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:(136003)(366004)(39860400002)(376002)(346002)(396003)(31686004)(478600001)(66556008)(66476007)(52116002)(16526019)(186003)(4326008)(8676002)(53546011)(2906002)(36756003)(8936002)(31696002)(54906003)(86362001)(66946007)(5660300002)(2616005)(316002)(4744005)(6486002)(142923001)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?eWxNckU0UmVTMHFwcjFLYkxBalkvR1lITkx1TUhRVi9CS1p3UlF3eEMrcHJv?= =?utf-8?B?bzFpYldaNnVMWE9oSU5QdEF0OXFWcHhNcVRjaWltSVNKV3h2Z2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GREhWTnFpS2VoS3NBd3dsTkdr?= =?utf-8?B?amhPUHlqWE1GUmg5L1lQUzBGdFozY1NncTFtdzhpZ0ppWm4vajlhQmdQb0dr?= =?utf-8?B?SHowa0N5YWFFTDhjUXBFaXIyc0VmZU5nQXdaM0tzWlp0QUdKdEJNVW1ydVdZ?= =?utf-8?B?NGl0VE9OZ1J0NkdEWTd4bW5Fbk9HOGRKeVhzcHo3eDlTTWtFeEtSNEgrZXZC?= =?utf-8?B?cWlyVnlBelQ3YjFjTkxybEJyVmlzY2NIRkdJem1hdWhTN0VXWDNRRTF6M0Zy?= =?utf-8?B?R3Z3RllHMVJNQlp3RjluajdYWlBybW00OUJvRUFTM0twT2laakNXMHNmMkNa?= =?utf-8?B?N1JMRTdyNXN6VmlydG9QY1NMbXh5aVJCY3dGOXowaTZTQ3crVTk0eUJyRGc5?= =?utf-8?B?QUJaWlFnamlMRGc9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 0254ebb3-817f-43a4-af10-08d8981009c8 X-MS-Exchange-CrossTenant-AuthSource: BYAPR15MB4088.namprd15.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2020 04:49:52.6069 (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: rfd26op4yLDZ5q3eYEmePrIpmFJ9A8n+c+6tyrSrG1YZymYU/G6W3+QKPc/fqEAx X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR15MB4117 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=677 suspectscore=0 lowpriorityscore=0 phishscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012040026 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: > A subsequent patch will add additional atomic operations. These new > operations will use the same opcode field as the existing XADD, with > the immediate discriminating different operations. > > In preparation, rename the instruction mode BPF_ATOMIC and start > calling the zero immediate BPF_ADD. > > This is possible (doesn't break existing valid BPF progs) because the > immediate field is currently reserved MBZ and BPF_ADD is zero. > > All uses are removed from the tree but the BPF_XADD definition is > kept around to avoid breaking builds for people including kernel > headers. > > Signed-off-by: Brendan Jackman Acked-by: Yonghong Song > Change-Id: Ib78f54acba37f7196cbf6c35ffa1c40805cb0d87 As pointed by Andrii earlier, this 'Change-Id' is weird. I didn't see it in other submitted patches.