From patchwork Wed Jul 17 03:24:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaoyong He X-Patchwork-Id: 142452 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F0ADE4562D; Wed, 17 Jul 2024 05:25:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9FF8740A7D; Wed, 17 Jul 2024 05:25:20 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2097.outbound.protection.outlook.com [40.107.92.97]) by mails.dpdk.org (Postfix) with ESMTP id 5A3EE40299 for ; Wed, 17 Jul 2024 05:25:17 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GIBig/UbSKVph21R5cscQ/ip13lShNe/+L7KGuophKGcm9TF4P9TlpcunbnV1MHzqO2SAquDv8cOl1SbqgNXUMn6e6JlTwm0bGwRI91SI/gbON4P/EFIcKNVpi6sD39I/ouN1pE6ttI6s4F5lVKCDMzfl7C/VuIAdlPAjJgGmqyz19TvgBM6ZQfn+X5vsvQxxUYm0yvE17XI2RHQDQLXLtdLHSLm4ByCJLYi3W5T7d62Uii81vtKDwkxQ/o2M4awL5XCCh1ZGQ7+jUk79MHuJeOwpLRZ1P0NdRkf6cm2rDYnu02X+T2tVvesjquqI/EbCcn+qErur6wQbEfTmcW6pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=xwmoBiBhoLn3clLx29rthTk6bNdRd4+5hQIRuWLoI4s=; b=B/5vXeT8P8e4FizBIrZQYhEZwRuLQzTwmq370idkoPHXJ6R/Bw5ac1ZaERmlgMy1qrLuElIZ9oVY8ep3uBoEb72v9fp4eoaA3CrHMDjjDlkMP80g+pxLfEB8/CyRhCVw/PwLbu0n8Wt7+6Eac2O16sMxet7IW+poNXBpjnHmNoQ3lrZ4Cp18t2ICxhRMscH/3xrpZwpwFDoOb9DAIjPySwVMJCDGq7vegMsCmWKWmvJ+blbH7/FXAzHZOYO074TBEJaT5AG0c8ENxTd0c/PpWy1MzjOhMTUZ38bxSCxw/yd5s5OE4xBQJqSHG1L7wDNz5I2aoDKsUQSHXtHGMqQX1g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xwmoBiBhoLn3clLx29rthTk6bNdRd4+5hQIRuWLoI4s=; b=vlh4xqNkVvTDM//jiubNIDHvckOsGKhBlOyya3wrEBSSRGgSiELBUQ4WHNehvWZhAVXqgzUPKJ8VMzM9ZhMMPnsEXpVgrF+enTxUzKaZIuGauD4+YJ0/+wpFAja522jzBxPBlk5WMOd48g1l2Axfo1UmGw5BxSKs+9ALxiuspKI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by CO1PR13MB4917.namprd13.prod.outlook.com (2603:10b6:303:f8::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.29; Wed, 17 Jul 2024 03:25:16 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833%4]) with mapi id 15.20.7762.027; Wed, 17 Jul 2024 03:25:16 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He , Long Wu , Peng Zhang Subject: [PATCH 1/2] net/nfp: fix copy and paste error Date: Wed, 17 Jul 2024 11:24:44 +0800 Message-Id: <20240717032445.442348-2-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240717032445.442348-1-chaoyong.he@corigine.com> References: <20240717032445.442348-1-chaoyong.he@corigine.com> X-ClientProxiedBy: SG2PR03CA0127.apcprd03.prod.outlook.com (2603:1096:4:91::31) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|CO1PR13MB4917:EE_ X-MS-Office365-Filtering-Correlation-Id: dddb745d-ee62-4ee1-f7fd-08dca6101397 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|376014|52116014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: jDpLaojkoId4KW2FSRHzNWQm3JUgsPTP3tpYJOjRFRa0oIcitq/pe6uYRlhXAGk1bkszgEI0PW1wf3/K5Hqo3r9KvYCVPVnJuuFV4F4hwSOBB8UOftnX+XLW2wsniIsfIW3ZN0Lwgre0wUaALbN0Z64T6pOrCTp6a7QUWvcchrBGC6/DfzDalMJYLoeMEU9SqUTWQ3NPnEEylAREB0K/6kkXl54zRCudYG3Y5B5ddWEoUnzVIYE1IfUWphAC9IF2eNycq520z6ww92ZquqcSIkXB0BGBogFj30rVNOBWp0M5tGDjIlSJ2iFYRLMbF37yds9LKOSwJ1E+MqNSLBHXNT8DIMIcd/C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.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(52116014)(1800799024)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eLLQu91BtDk1AShFgWHxShUHNOeg8fAEv3sjDvDhd79kEmHgni1yi6FGtG7orqcVcfXF90q+hluOtr6G8i+g0rY3tkLift+gzS2NdClb7L+xYl9qx3WqGsbccPWgVtMj0uK5UcdZt2QCiuNQI+Zv1vNaWmVrX+90pLs/QXPdqmUaem1xtCMoFS1LQRLWOye4qZxgnoiDy+JrVN0yH6NGuqQD371KAIbJqk3OiX/qXrUERRtO2e6ZDaG3zRH4bBapIPoyELNvccaLJuiga64ZZhwj1h7Nkk453G9XL0sJ2jDV6XeYHW8CUYmmB9imF8l0JSWvRIgLb5ie0BayNSHqlEfZYv5ghs5Dm8PaeqalWMO/oxdQegD5l6h1+LT/A5rU3f6bvmrKnxYBJaUjJBZ78hwhmF21Q11k1rUge4Ht2JTvCUsznwK6PiFJ6eDqs+Dd82GbSRW9PyjAbF+U/mYVDRRpC/UZTdfhAIAvuMbhgioXsbRwV431DqH3FaTqlJ+r0fvULiLbvtyVddP5l6xKPFxJwyvCrx7g296x47WZ9dNPmRgzCFjoix0GpsUyTdHLpfKb5rk0rE7xCR4hNC4hXCy8CJcVPcc4vcU6HpdTE0OKzalhmPTdokZwaRXB5RxEyfIDcwtr5GFQG4yObi3GMLiXip0UWXljFWNGr7lwovlMbZhzAYCRSnAm40XsxBTu6E4Q9UxN20Hrz8AvzoMa5DHipkQ62TuCrj75MTp2ZZyHXbhOi/SltRylRB4PGV4VlFqC5AQZDXz1hTGyq4kSn/78TudLmD7cHq0kI6kODbrUz7P4H6fBCV7JvtbbiftnIppF37M+aATA67lHWrYua0+Vx9H9ZR4QZ5WuKNNWimeHq3WID5Wj78G7wwMUylJJfgwl8CcTZTI9Ggcy/iMcaFykjcFHk4HpeBnSAQ45rfCO6VgQ7AH/J7WdJTVrJg4h0Ni/7ooGSo+WRJiwxniuQK4K/T3ewpSQWbxO4zPMuJVV5z/ENtoRN90BIoIcN50673vGm3nlD++53j32WUBAu06Dh53cEuDV6DhkbC9fmJIFx+vHwIfb81LSa1cp7ixvW1hJpN8nxXHfn6K0lVLpLnRffwD1bk5QaSwfk5WbvrRjTUG7t8t4f+DxgLqzMLeM+dZUbkcjj30fu2GsHpSf01aMG7n3A+oP/uGk88kqmTwFqKqUh8jtJFao/YArY6GdnHqm2Mzo10s4DTaIM2KuS6zGE3elNw2+tGczI3Fl9gb25BsUT949Q7/7U2FRhPq3WAwHJv+apPxMo3+eMdftKdkXgUdgNxy1i3Ns0Wj6ABsDQAb3WdNtP1EtvaqYPBX0NlyMqKIjZPvX9q/cFztq5Nm86UbyFwo08MKhdR9EeFYe3STK4N+a1Zsrc1N7aG0HonMuWu3WbgDqooD16oN6hVavSim73pA20LoD0bJHBF24RbldMWIwg991ubp2bP0alie9tGOujUbL3cJWcE+2Uh105fFUrUdT4hhBGPJbUnAUqafloZEBqvuSF9CNbXzJMXev5xA25AtnnPfACCFjd8Fo059Y29MmpUXH31xWlqgnPBf2I322dqcLNJaMGObH0HvpKQi3XTqQlHrKuzcwkw== X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: dddb745d-ee62-4ee1-f7fd-08dca6101397 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2024 03:25:16.1459 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8u/x8uejEx10rhy8F/1aJYCXZ9vvBNgdqPf+QWkz0JWetqA2vUX+mHm7ryfQLZIvUsHlP6Kzq+dA79E29t999f1lKkxIkTulJCQH2DLTTmM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR13MB4917 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org CI found copy and paste error occurs. Coverity issue: 439967 Fixes: 830057d1dba9 ("net/nfp: refactor flow action compile function") Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/net/nfp/flower/nfp_flower_flow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/nfp/flower/nfp_flower_flow.c b/drivers/net/nfp/flower/nfp_flower_flow.c index cf2b919e7e..0078455658 100644 --- a/drivers/net/nfp/flower/nfp_flower_flow.c +++ b/drivers/net/nfp/flower/nfp_flower_flow.c @@ -4458,7 +4458,7 @@ nfp_flow_action_compile_ttl(struct nfp_action_compile_param *param) } } else { nfp_flow_action_set_hl(param->position, param->action, - param->flag->ttl_tos_flag); + param->flag->tc_hl_flag); if (!param->flag->tc_hl_flag) { param->position += sizeof(struct nfp_fl_act_set_ipv6_tc_hl_fl); param->flag->tc_hl_flag = true; @@ -4485,7 +4485,7 @@ static int nfp_flow_action_compile_ipv6_dscp(struct nfp_action_compile_param *param) { nfp_flow_action_set_tc(param->position, param->action, - param->flag->ttl_tos_flag); + param->flag->tc_hl_flag); if (!param->flag->tc_hl_flag) { param->position += sizeof(struct nfp_fl_act_set_ipv6_tc_hl_fl); param->flag->tc_hl_flag = true;