From patchwork Wed Feb 1 12:36:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiezhu Yang X-Patchwork-Id: 51319 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp254924wrn; Wed, 1 Feb 2023 04:43:26 -0800 (PST) X-Google-Smtp-Source: AK7set95BqxYu0oNjt1QV/mtrmi9oBoWnU5c+1TuMo9OvEWD9TY3H5NDuU8pBZep/C4OtRKvB9+r X-Received: by 2002:aa7:cd7b:0:b0:49e:28b6:4cf5 with SMTP id ca27-20020aa7cd7b000000b0049e28b64cf5mr1609322edb.12.1675255405788; Wed, 01 Feb 2023 04:43:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675255405; cv=none; d=google.com; s=arc-20160816; b=a5o6PMi6MJDtd/srQf/qXl3IWVpsrBC7126ghvKVuGCeH8FvmCpM6sbk5IL+OqPiHb u1YxbAW+IxUma1I2ipfjPWgVaAb14+ur45ENrsFY2q9je0KpdbuHcpGCEiXBxKyx/1qc JSyZ1/kiu851LFK/lPvoCBcp5e2nynsC2XDqa7WlnBXgSvnxJ5EtLw7Lx1wRI0J2EKqA Ajvc4662kFCeaGlyhZEbiN6gnnRuENbOY3jQO8rjp5p0u1S9OR+h1W2a1tr6MOjeJYHj B6TkLOJAi1l0kdioBBq7i4Vz6Uh7GSJxIfHrpsslaawMle7Cf6E5m3NxLaLZ9SlLgPe7 BDwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=iqJHqz3SfyepN707O1yRsL3RV+ov6JCIBkF8HiscKbU=; b=up4Qg1d3VzTGw4DHBwwqlEBdNBoggR2WDLEIt7tV1MFzDdvUHUWDKlLsOZvFPg8GMQ 0LkzPfv6wznliEH4fUCJzZ+oj9ygb11j5H4jW6AAOkMf0GBIA2R6FbNf5dTIadcPUjwF r0cvdYBenyIb5LG3qu84zhMlOBK7A6g4Np7lWqPHNqYOO5U80lZ2AkjuGsAFooFxyrKo CSXS+SGGwzAbI/RWU2v6OVavWilUvc+3zdZzboptC+E0EY9cumeYG9gKrtll0eGPDYM+ NOwHyzFF8rdoYHNWcf4daXRZq3SK9WFVz00EbH6+fI4SoTsMZtzi8R4UUAxO8F2IY+6p yO/A== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n12-20020a05640204cc00b00499e590d47esi19705446edw.36.2023.02.01.04.43.01; Wed, 01 Feb 2023 04:43:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232054AbjBAMgy (ORCPT + 99 others); Wed, 1 Feb 2023 07:36:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232002AbjBAMgp (ORCPT ); Wed, 1 Feb 2023 07:36:45 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6F24E5CE45; Wed, 1 Feb 2023 04:36:43 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8BxZ+naXNpjZHkLAA--.18171S3; Wed, 01 Feb 2023 20:36:42 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxOL3WXNpjUXImAA--.10032S6; Wed, 01 Feb 2023 20:36:42 +0800 (CST) From: Tiezhu Yang To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH bpf-next 4/4] bpf: Mark BPF_ALU and BPF_JMP as deprecated Date: Wed, 1 Feb 2023 20:36:38 +0800 Message-Id: <1675254998-4951-5-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1675254998-4951-1-git-send-email-yangtiezhu@loongson.cn> References: <1675254998-4951-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf8AxOL3WXNpjUXImAA--.10032S6 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7WF17KrWkXw47ZFW5uF4xXrb_yoW8Gr15pF n5ZFW3trWkGay7u3s2v342gasxJr4DGF1UGay7WrWUGFy7tw4kZr4DWa1ayr1rXrWvvas0 vwnF9w15W3s7XrDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU b7kYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26F4UJVW0owA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Cr1j6rxdM2AI xVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I8CrVACY4xI64 kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1q6rW5McIj6I8E87Iv67AKxVW8JVWxJwAm 72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2Ij64vIr41l4I8I3I 0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWU GVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI 0_Gr0_Xr1lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0 rVWUJVWUCwCI42IY6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r 4UJbIYCTnIWIevJa73UjIFyTuYvjxUcCD7UUUUU X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756632612200864174?= X-GMAIL-MSGID: =?utf-8?q?1756632612200864174?= For now, BPF_ALU and BPF_JMP are not used by any kernel code, but we can not remove them directly due to they are in the uapi header file, so just mark them as deprecated. Signed-off-by: Tiezhu Yang --- include/uapi/linux/bpf_common.h | 4 ++-- tools/include/uapi/linux/bpf_common.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/uapi/linux/bpf_common.h b/include/uapi/linux/bpf_common.h index ee97668..75ae3dd 100644 --- a/include/uapi/linux/bpf_common.h +++ b/include/uapi/linux/bpf_common.h @@ -8,8 +8,8 @@ #define BPF_LDX 0x01 #define BPF_ST 0x02 #define BPF_STX 0x03 -#define BPF_ALU 0x04 -#define BPF_JMP 0x05 +#define BPF_ALU 0x04 /* deprecated */ +#define BPF_JMP 0x05 /* deprecated */ #define BPF_RET 0x06 #define BPF_MISC 0x07 diff --git a/tools/include/uapi/linux/bpf_common.h b/tools/include/uapi/linux/bpf_common.h index ee97668..75ae3dd 100644 --- a/tools/include/uapi/linux/bpf_common.h +++ b/tools/include/uapi/linux/bpf_common.h @@ -8,8 +8,8 @@ #define BPF_LDX 0x01 #define BPF_ST 0x02 #define BPF_STX 0x03 -#define BPF_ALU 0x04 -#define BPF_JMP 0x05 +#define BPF_ALU 0x04 /* deprecated */ +#define BPF_JMP 0x05 /* deprecated */ #define BPF_RET 0x06 #define BPF_MISC 0x07