From patchwork Thu Feb 2 06:31:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiezhu Yang X-Patchwork-Id: 51734 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp73691wrn; Wed, 1 Feb 2023 22:34:43 -0800 (PST) X-Google-Smtp-Source: AK7set+K1xsrqUg0vPlOVULvvmNSnTGVIeogQe6epqtbyFSKMUTYGrupRohowUhMA9h6qhECZpbp X-Received: by 2002:a17:90a:1a46:b0:227:c69:3ca7 with SMTP id 6-20020a17090a1a4600b002270c693ca7mr5671028pjl.10.1675319683358; Wed, 01 Feb 2023 22:34:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675319683; cv=none; d=google.com; s=arc-20160816; b=dm98QytewOgZ4G++0bep+Dl+/vnAQBTR1yXpl+fXhCinJki5IY1Lm8MuGwkT9ierOx vkl6Go60wp1xfB7hQlecoxSK3I+/faD3krZNJWLj+J4jzAq37gNxsl78EsEf09wbcfNl xucX8zDUj0QrupHIx1dgll55JeKbl2VNvUL3NDKqAsNqJGbEJpAzYUfS9rU/xT7hG2QI Xe0J0hE5IBs9Utdhc2VcT9RQjyTpibgTddJT7g26N/VcAKirG0d+4i3e4gVzCVZ1MPql J/IkY3TJxFNk4zUH+xzyPYvKKBbj1L2fBTTc8nlJLhnLgU2XqbzQXcbdCBxir202wM4l Tbgw== 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=V2Wra24dMIMXQ/PJ19sLXKjhLknzp8V7J1X2/YjcZuE=; b=w+HT14ipaOstKtPVu253YYF05sBCA4xD2UfZB1/ge7RJCVCUPeerOzaU659LzfF4Lt AqOie47SIPbKl/uyS6QfTYMsaD/tEQYzb1WZf80zkJLEVnLqyFfXBsVkmKyaKJyRdVnW 1qyQN3dqrBIghKBVqxbb4YjMpB6SYAWsvX/Sqtlk5JbYpZiQwcN8N7zGrI850nXoz/xk 5YUHg+IhFjO0VqWLXDBfd/YwH6qbmB7hVQ8xyhPRT8JJEMfW2jbX/zSQ0zgWP8/rdoQc RVUMHKDNNRYiOf0RuQBSCK38tHyB+0gEZ3cXg1wvprB7KfLSk2d0zQ85OSomcjY0jEMK lVkw== 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 c15-20020a63724f000000b004da8bc91308si23282003pgn.743.2023.02.01.22.34.30; Wed, 01 Feb 2023 22:34:43 -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 S231624AbjBBGbh (ORCPT + 99 others); Thu, 2 Feb 2023 01:31:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbjBBGbe (ORCPT ); Thu, 2 Feb 2023 01:31:34 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3D9447E685; Wed, 1 Feb 2023 22:31:30 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8BxLuvBWNtjkSgMAA--.24557S3; Thu, 02 Feb 2023 14:31:29 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Axvr6_WNtjUScnAA--.16445S3; Thu, 02 Feb 2023 14:31:28 +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 1/2] tools/bpf: Use tab instead of white spaces to sync bpf.h Date: Thu, 2 Feb 2023 14:31:25 +0800 Message-Id: <1675319486-27744-2-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1675319486-27744-1-git-send-email-yangtiezhu@loongson.cn> References: <1675319486-27744-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf8Axvr6_WNtjUScnAA--.16445S3 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvdXoWrZFykXw4xKry8Aw4fCrWrAFb_yoWfCFcEk3 43Cw4xGryDury7Xw17uan8Zrn5t34fA34v9F1rtr17CFy3Zw45K34kAF97Gw4Y93ZrGr4k tF13urW0qrsxWjkaLaAFLSUrUUUUbb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrn0 xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY 87kC6x804xWl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3w AFIxvE14AKwVWUGVWUXwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK 6xIIjxv20xvE14v26ryj6F1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7 xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr1j6F4UJwAS 0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCFFI0UMc02F40EFcxC0V AKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUAVWUtwAv7VC2z280aVAFwI0_Gr0_Cr1l Ox8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxAIw28IcxkI7VAKI48JMxC20s 026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_ JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14 v26r1I6r4UMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xva j40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AKxVW8JV W8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU8vD73UUUUU== 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?1756700012281684901?= X-GMAIL-MSGID: =?utf-8?q?1756700012281684901?= Just silence the following build warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/bpf.h' differs from latest version at 'include/uapi/linux/bpf.h' Signed-off-by: Tiezhu Yang --- tools/include/uapi/linux/bpf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index 7f024ac..ba0f0cf 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h @@ -5817,8 +5817,8 @@ enum { BPF_F_ADJ_ROOM_ENCAP_L4_UDP = (1ULL << 4), BPF_F_ADJ_ROOM_NO_CSUM_RESET = (1ULL << 5), BPF_F_ADJ_ROOM_ENCAP_L2_ETH = (1ULL << 6), - BPF_F_ADJ_ROOM_DECAP_L3_IPV4 = (1ULL << 7), - BPF_F_ADJ_ROOM_DECAP_L3_IPV6 = (1ULL << 8), + BPF_F_ADJ_ROOM_DECAP_L3_IPV4 = (1ULL << 7), + BPF_F_ADJ_ROOM_DECAP_L3_IPV6 = (1ULL << 8), }; enum { From patchwork Thu Feb 2 06:31:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiezhu Yang X-Patchwork-Id: 51735 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp73847wrn; Wed, 1 Feb 2023 22:35:08 -0800 (PST) X-Google-Smtp-Source: AK7set9xNqlq7x2qJwybkUfJNvakVseZy/m/RKmRpPz//b9LQdTU1zzc2iZ1LC/cKteY+J/Qfz9Z X-Received: by 2002:aa7:88d6:0:b0:593:e120:6291 with SMTP id k22-20020aa788d6000000b00593e1206291mr5220096pff.34.1675319708109; Wed, 01 Feb 2023 22:35:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675319708; cv=none; d=google.com; s=arc-20160816; b=j+xLgie4nPoU/VhYaCxOyOeHG+G0a2FZ9F7ZPNsgJ5I68jq6TBLe0gMRutP4mn3qz4 DQfsKUPFLrExB8ozZtz0gjwSI/4+rjLJL5ue1iPTYneWQnijsbuV1oWLFuMIHuF5pWO9 uok+VbGzdqPstthUpTJrntTqO1SDl1b2NldPDPxPxTCFi6sFPZBMXSZ3W1rCP2QYNQQ7 QdPMa/a/HbcIZlXAiHYnyrU8PFK6aUeoJwmPaf1bZpiHD5O1MKjQmgw9xUD+u570Iujt QwabWQIKM639xBtNPYlF9JmS1aj373MOt6PrGXf/IMyxe39qPpTexLkMG6z2AazGfH8S hbaw== 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=ETCRIPiBcSk2cdHDd8ZZWtsYJWfTzNEKNImCVi6BVRA=; b=xUXMyycjgJ72PSUy6soRXMxeXjk2NQvGOfIFiNUgc/1pikFm/4Cg0FGScZ0EA5ZsPV 1wYtq76jHF8G6DGc/iilLYrSthzZbQKUfkLK9DBK6tr8w67sRPq91ggXQOiTPJL4Beru KxjiuXIcQ2aYu5ze+YFYJ7NN7lyjO+oxbmVy7SPQg0TTLyESPgke5+4KeoOm9psKZ0Tg ayHOYCki5B1H2PFmOr282pUJwA6itE0pMxz8U94Jg1fPjQkwzpzWAmvrdY6B7iedrXGV qkIhCKY4WlL+qdlglEc5QX9h84OTQCO8yjI11WLdQcayIRJNs8r4SQGapAqmFR16M2J0 zgzQ== 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 c80-20020a621c53000000b005940003f68csi5767456pfc.356.2023.02.01.22.34.54; Wed, 01 Feb 2023 22:35:08 -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 S231716AbjBBGbm (ORCPT + 99 others); Thu, 2 Feb 2023 01:31:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229881AbjBBGbf (ORCPT ); Thu, 2 Feb 2023 01:31:35 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D37E37E6BE; Wed, 1 Feb 2023 22:31:31 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8Cxe+rCWNtjlCgMAA--.24242S3; Thu, 02 Feb 2023 14:31:30 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Axvr6_WNtjUScnAA--.16445S4; Thu, 02 Feb 2023 14:31:29 +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 2/2] selftests/bpf: Use semicolon instead of comma in test_verifier.c Date: Thu, 2 Feb 2023 14:31:26 +0800 Message-Id: <1675319486-27744-3-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1675319486-27744-1-git-send-email-yangtiezhu@loongson.cn> References: <1675319486-27744-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf8Axvr6_WNtjUScnAA--.16445S4 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7XF4UGF1rCr48KFW7Kw4rKrg_yoW8JrWUp3 ZYqayqkrWrtF43GF48Gay7XF4rKFWvq3y2ka4qyr1xAa17J3ZxJF1ftw4Yqr93XrWrXF4f Zw1Ik3sxX3W8AF7anT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU b28YFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4UJVWxJr1l e2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2 IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_WrylYx0Ex4A2jsIE14v26r4j6F4U McvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxGrwCFx2 IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v2 6r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67 AKxVWUCVW8JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IY s7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr 0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07josjUUUUUU= 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?1756700038223534358?= X-GMAIL-MSGID: =?utf-8?q?1756700038223534358?= Just silence the following checkpatch warning: WARNING: Possible comma where semicolon could be used Signed-off-by: Tiezhu Yang --- tools/testing/selftests/bpf/test_verifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/bpf/test_verifier.c b/tools/testing/selftests/bpf/test_verifier.c index 8c80855..887c49d 100644 --- a/tools/testing/selftests/bpf/test_verifier.c +++ b/tools/testing/selftests/bpf/test_verifier.c @@ -209,7 +209,7 @@ static void bpf_fill_ld_abs_vlan_push_pop(struct bpf_test *self) insn[i++] = BPF_MOV64_IMM(BPF_REG_2, 1); insn[i++] = BPF_MOV64_IMM(BPF_REG_3, 2); insn[i++] = BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, - BPF_FUNC_skb_vlan_push), + BPF_FUNC_skb_vlan_push); insn[i] = BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, len - i - 3); i++; } @@ -220,7 +220,7 @@ static void bpf_fill_ld_abs_vlan_push_pop(struct bpf_test *self) i++; insn[i++] = BPF_MOV64_REG(BPF_REG_1, BPF_REG_6); insn[i++] = BPF_RAW_INSN(BPF_JMP | BPF_CALL, 0, 0, 0, - BPF_FUNC_skb_vlan_pop), + BPF_FUNC_skb_vlan_pop); insn[i] = BPF_JMP_IMM(BPF_JNE, BPF_REG_0, 0, len - i - 3); i++; }