From patchwork Fri Jul 7 08:12:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lu Hongfei X-Patchwork-Id: 700726 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ABDDBEB64D9 for ; Fri, 7 Jul 2023 08:13:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232010AbjGGINK (ORCPT ); Fri, 7 Jul 2023 04:13:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbjGGINJ (ORCPT ); Fri, 7 Jul 2023 04:13:09 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2111.outbound.protection.outlook.com [40.107.215.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDADD1FC9; Fri, 7 Jul 2023 01:13:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=knjYqbC3ML6B118hRYVBLBHrmGDvUip5vGQmgVClCS2j9SwO/QxidLmDgObrVxU9pfXI51yZt41DhaYxuTdBNzYPBYeonhZGxVPu/Q8CgvTZgCQySlud/BDog/wqveqouIUMFvTggsZ3LtOiaDIzrZG6PeC1qKXuc4TpHpGLeYX4/B2K86KLLNnTa9eQUbRi9UrFV8BQcf2mAuV5dlGbDdIAfqlHGLumHWCu/2f5s/Z7zGPKTvhxVhxLDuUuxKMP6AvtmEL4Om2YEc8Lz20NO7zFzKYApsjjyLO5oGDR4o/HPoPsRg2d3IUXJXOlgAmgpTHi2wLtorxerjDcS06lDA== 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=LWAfA4UvfFYgPmht3eaKnqhHUz6P8Go547MJGG2sGT0=; b=eKXGqB2xX7+lPGVO1rRSfk60j3r0yNBFIbIr+TlQgEsqMi4lQdXDuxLJfDWd/uOQp5ls/ad5zaNVpjPw8P2CXuC7iTpsxDThWN8pPLloWPnNs4+Nt+UCgjHW0XUlwLwwih4prWaVnmpLDDSzWGJRf+4PefLP+DZwL0yUN6qpKII2+r1bzmXd/vANh+r5W0wENkb++5/NL2VhXg17ZQWH/ITe67qpMySouL7uuKFoCnozsHgVqLgr3S06BlOhFxiSk1EHJmRHlHBZofESY4XqBqWJKbY9XloMXW+zt5bc+rKPVCbQsoSdNwwAgT3ZqS3Z+XdVubGswvRnYxStq6V8kA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LWAfA4UvfFYgPmht3eaKnqhHUz6P8Go547MJGG2sGT0=; b=Y8NP0QEeZUx11LCDi1hs+3II/Jslj9f5gCDzMrNE6eRUERaXSfFFPBXOEMuKJZ2arBL/QOMOK1vqX1LyLjjVo1oBPu9BeGRfMZta71E+x9e8UCEg4kOA+hNKjucqvVSOnpIhVNDki5EJjOcPuKLw3v6eq1aM0AmDnCSEIS3/BbZNVWKC7K6FNXSGAbt6v8WT6BN/D9ik303ki9ShTIuwoRaV1yzs/8eTAogy2f7JN4PIj4+XH/nTrGQ3zcLEF9iSUlLeH48etBUvkVOt1OqA9076fbDsvyqXtcLxN78pYsHOLvy7ZPv+wq6tBjbKH+5KRluIzg/64qjZdVmJrfpOqg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from TYZPR06MB6697.apcprd06.prod.outlook.com (2603:1096:400:451::6) by TYZPR06MB4480.apcprd06.prod.outlook.com (2603:1096:400:72::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Fri, 7 Jul 2023 08:13:03 +0000 Received: from TYZPR06MB6697.apcprd06.prod.outlook.com ([fe80::8586:be41:eaad:7c03]) by TYZPR06MB6697.apcprd06.prod.outlook.com ([fe80::8586:be41:eaad:7c03%7]) with mapi id 15.20.6565.019; Fri, 7 Jul 2023 08:13:03 +0000 From: Lu Hongfei To: Andrii Nakryiko , Mykola Lysenko , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Shuah Khan , Hou Tao , Lu Hongfei , Anton Protopopov , Wang Yufen , YiFei Zhu , bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com Subject: [PATCH v2 bpf-next] selftests/bpf: Corrected two typos Date: Fri, 7 Jul 2023 16:12:50 +0800 Message-Id: <20230707081253.34638-1-luhongfei@vivo.com> X-Mailer: git-send-email 2.39.0 X-ClientProxiedBy: TYCP286CA0126.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b6::10) To TYZPR06MB6697.apcprd06.prod.outlook.com (2603:1096:400:451::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR06MB6697:EE_|TYZPR06MB4480:EE_ X-MS-Office365-Filtering-Correlation-Id: 6da0761a-ee5b-455b-36ad-08db7ec1fc76 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fBrYmNiIfiJkdaIj/hI1JKQOl+EUMWx5t17hV/rd7UIv6MUYxk+TVRu4EBPyn3TKCTwnUxg5+D0Kx2nbzXkUw3wDi+M3o2NWmJLMJ3m+p2IiU5r8FT3puYRVU75Ki02mAniz4QtPOcf3GK3nZYHlv14k0BeBipvRT6eJwA33g1TeZUzLyPlVwt6hXu3Iq2IArbZeLEEqpByHgRjNQCsp9rdP4gZw1Lv5XHVCYa5B7d6C24W+NybOozbXTWRKnsRPT3QVxoYvzzIPRHdFtY4TXu5pB50HBSPTZ+BZWSPUJtgmZq0EVXEKeg03I8Wi2Px04sZQYrjbOWkoNShD/3VnuEdQCAgLrJ+oNzcGLYe+vrcaLlv5660lum0W3UG9z8nJ1TXN2HRgGtOjh5N3TqS0TSd3G36nMnp5/tuNy1wKm3tsu9TMO41qXcsQCddB2Ak1TVYFogdWp/tXhQoTm2bwPWnpun47nBZjDXgm4joQF5YafBJNq661BajxilMd/uOm+2vqfBGO8gpmLGEQF4YWjqFURLne1TTphYDSkbO/y37QrmIcXjoKKp7wxg3JyOgPcauMOa/Ma/Vd0suHqBxyhMNpRt2W78R7K34IAkqzMHlqj+b+pwKBS4iwKH88YMxztTWbWI6JHuGvx1JNLicveg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYZPR06MB6697.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(396003)(366004)(39860400002)(376002)(346002)(136003)(451199021)(52116002)(478600001)(6666004)(110136005)(6486002)(83380400001)(26005)(36756003)(66946007)(86362001)(2616005)(2906002)(186003)(1076003)(6506007)(6512007)(41300700001)(38350700002)(38100700002)(107886003)(921005)(66556008)(316002)(4326008)(7416002)(66476007)(8676002)(8936002)(5660300002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nFT+FI5eSy7e70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e+RD4pvY0mBxmKv6fwGdC8szkoj+YRkHxkJV2KgDRjy+5o0e6dl6Csw+d9ex9sgNfZuxPgZDMbrsAU5zWVL44M1Na7IXbWLyVlK6DMQwbGdj1tFDmeVOmDig/nQy6IuT4K1xD0gRLds+fDwxMtPqIzxpaZeGZ+0t9JmM15cFJRoCg3qYLsnGA0qdjL/unnL8k8G0D3iBcaZ3hvfzha4TCwL3+hIy92RfadL6ONPr0WVg8HIX/Ybp3w+pC7q+W0erGmttv/50UhtHR50CiR90ZqIionJf+BUid0A8CB92e3v4SKpN4A25/mUzU9ne5Hs+XYQzS+Sqab9anqlUe0ezUbGS6Nn5rQW9k/wvOSVW1+xpi8Nzpot3kTOPiIGwEE72Ef9PsKEh0S3lE5mH99SQ2CIntbzMu6UYb/OPqjqb+4TtAXqg4YU5HBJFcIMIqHZ6pUvDpGz1o7sK/O/Hz85i4biyj4w4ADtyCxbHGoULM2MgFiLz532eUnGUzrJg/PX+wCkkO X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6da0761a-ee5b-455b-36ad-08db7ec1fc76 X-MS-Exchange-CrossTenant-AuthSource: TYZPR06MB6697.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 08:13:03.4045 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0jtaPce+TtJgZLuftwuHI0F3Bvmlgka7HRkzMVcqBhjeIARFd9kgxRwFDzIfmEjQ9GiHrkFC+482wRUzvIJL5g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB4480 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org When wrapping code, use ';' better than using ',' which is more in line with the coding habits of most engineers. Signed-off-by: Lu Hongfei --- Compared to the previous version, the modifications made are: 1. Modified the subject to make it clearer and more accurate 2. Newly optimized typo in tcp_hdr_options.c tools/testing/selftests/bpf/benchs/bench_ringbufs.c | 2 +- tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/bpf/benchs/bench_ringbufs.c b/tools/testing/selftests/bpf/benchs/bench_ringbufs.c index 3ca14ad36607..e1ee979e6acc 100644 --- a/tools/testing/selftests/bpf/benchs/bench_ringbufs.c +++ b/tools/testing/selftests/bpf/benchs/bench_ringbufs.c @@ -399,7 +399,7 @@ static void perfbuf_libbpf_setup(void) ctx->skel = perfbuf_setup_skeleton(); memset(&attr, 0, sizeof(attr)); - attr.config = PERF_COUNT_SW_BPF_OUTPUT, + attr.config = PERF_COUNT_SW_BPF_OUTPUT; attr.type = PERF_TYPE_SOFTWARE; attr.sample_type = PERF_SAMPLE_RAW; /* notify only every Nth sample */ diff --git a/tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c b/tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c index 13bcaeb028b8..56685fc03c7e 100644 --- a/tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c +++ b/tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c @@ -347,7 +347,7 @@ static void syncookie_estab(void) exp_active_estab_in.max_delack_ms = 22; exp_passive_hdr_stg.syncookie = true; - exp_active_hdr_stg.resend_syn = true, + exp_active_hdr_stg.resend_syn = true; prepare_out();