From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 86F4D45495 for ; Wed, 19 Jun 2024 11:15:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7FD864279B; Wed, 19 Jun 2024 11:15:08 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2106.outbound.protection.outlook.com [40.107.244.106]) by mails.dpdk.org (Postfix) with ESMTP id 796574021D; Wed, 19 Jun 2024 11:14:28 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H3cGLw4MH1XIgLscuEpSE/j+RCtTc4yPjDu2vgyVcnuhzXxdtv5MQq+b6iI0aBdUw/yxKeLCVPJyQWx7qvvVHLxHwtrhb/hfq7sfokjHwdVZE9R1312xuDyKaFfXv0sQDHQC36KaPSXX3wWBstWMKyDZLyEpuidExKN5zOTahv7axH1zyk2YTxXThKDRkoefWtQs0K4uuVVAm+gjE77wxZg5p9c1IWPf9qt6VOmiVxwsYzBrd4lQPTcpwI+Z8LylvJbLwJGNJkVNEK3H0Q7LLFyrPqDfS+5sProFl9KB4mQI5FEQOaKKLyf2LRoOIjuZuPC23p2Ai+/SiuOIEVYhBw== 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=oy+mGE+yHU0F33jT/6WkrZT2DKXjnqptBPnR2Jy5PX4=; b=l28gK9XO8BuJnlIjnHm1kiGpZQfrXAn+W0dcBucTqN01GjwQhavAwCBywXEGNz5kprGywD/X2UwJyhwNYgV7VbmqdB0UqBwRA4Ioxl6wedXkTPwoBmX8fNPWG4UDEYWWkNY4rBciDNAyNhCayVh5yOuwzcmu2euo77cyjFTPnhdbE79FcqJZ78ZchHxOk+tNy7MgojOvaSo4w6hok4tQH557AnyEqSBtf9pDhyj/nMErpoY0pPLdqsju3zgHLUfXJZGp8aROMCI2eMQYaqb2P3MWXJwuotiSV2XHdtb+FNrch3llKgF6lfqMrZIq21jHtPxArcyDkKFC0yEj9W60jA== 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=oy+mGE+yHU0F33jT/6WkrZT2DKXjnqptBPnR2Jy5PX4=; b=Ljsp4J4pu58TtiMmVyALhoRqxZ6UCzCIXch5VshScR4i61Njx2s+8jKeC525ar4j4tDAsO6W/HxPQYalGFFP3VWbCXhYKKkwshaUAwwT52Oy7/hKttl8i1ZyTWNF7RHGO67YTL1bII/7osOnCn9hJwmjD58kIxDKPNLeBDAaRj8= 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 SJ0PR13MB5523.namprd13.prod.outlook.com (2603:10b6:a03:425::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.31; Wed, 19 Jun 2024 09:14:26 +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.7677.030; Wed, 19 Jun 2024 09:14:25 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He , stable@dpdk.org, Long Wu , Peng Zhang Subject: [PATCH 01/21] net/nfp: fix IPv6 TTL and DSCP flow action Date: Wed, 19 Jun 2024 17:13:38 +0800 Message-Id: <20240619091358.3479247-2-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240619091358.3479247-1-chaoyong.he@corigine.com> References: <20240619091358.3479247-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BYAPR05CA0027.namprd05.prod.outlook.com (2603:10b6:a03:c0::40) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|SJ0PR13MB5523:EE_ X-MS-Office365-Filtering-Correlation-Id: f1a8df71-1ca4-4454-2007-08dc9040367d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230037|52116011|376011|1800799021|366013|38350700011; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?04oSMdgLqLdmdPX/R2vva9uyLxw9puhPmseM9gooD726Cgp/g+QhVAcvubxC?= =?us-ascii?Q?oD3xqQUWTMAWmrOeKFuulHkEac21ui7gkQHPj2foLXX+RxojBkwbTOfboyjX?= =?us-ascii?Q?fQf/22TqykfBmgqZyvRR/l7rYezcYdYtAhWgmPqsUyZ3xvu5zBgVn7b3ieBa?= =?us-ascii?Q?ncglAhubFaXq2acJJPhgeqhmx5J8T0S0VVba/xL7iimLWMzWUdXhyVBVeHTm?= =?us-ascii?Q?0NY+Nx1xQTHCoqWuYML0ROxh65niVNnda5FJB42iT0Z+i4tbYoWhiiaVkHUI?= =?us-ascii?Q?2hppUpOSbJ2uZcu9UK9dIKGWpJHhkkxEs3JdCVQpWTWAWRbbRj9iYIouHyky?= =?us-ascii?Q?+CCDHE6kuygm8EvR7VpcRDRhvdz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ii?Q?iFReSv0XcRLTl3JIi6mRaRfPEUxFP5w6suNJIpxwIhz4JrTDKwQIwXgf/+2Y?= =?us-ascii?Q?bClhNdb5TR3M0W+rJPhANLDIO8TcMofnkgSHwpvv/wp8W/F3CuoiUkSqH47r?= =?us-ascii?Q?SpVbtXA=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230037)(52116011)(376011)(1800799021)(366013)(38350700011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Ca/Bsuog+Q8NjZFESaIVi4I1L61uUm/6c9VKc2U+zS9YnVQm66HFDkW9MJWr?= =?us-ascii?Q?osfPTnQuB+kbYroJofsG9nvHfQlaCXH4AwoYX728Kll3vGYTz3rLbfFz3L/e?= =?us-ascii?Q?QETqwOt6jKqfnBytE1UdforuK+xVL1dOvvaS1RY3WF/RrI+7hnDWRylYopT9?= =?us-ascii?Q?tpM7J5F+WWpG8mMARBoj97Gv0bFAS6SX834UmRJ6229DPd3gfklPumuYyJ7M?= =?us-ascii?Q?lOHXni4bWfNXs2ubUE7sFMjxJj7vjHqb3YIre9aOTtLZgQ8OmnUhPCrU/AVL?= =?us-ascii?Q?Ig+4y85MrUtGoz4DLWooZJlv+i1eQIks5EZgscVpzFbE29bp5UaH7/ur7bqB?= =?us-ascii?Q?/RXvAIuYbYE0IAEcN7naNgw8kNbHgh3atoXngyQn/gwMvqh3ySLQ84vOssEy?= =?us-ascii?Q?kavIpZ+7TcyYaHvko6+Qxv2eMabFGmSSCuWpulgkkQNDkDoYkWW/goNyWi5w?= =?us-ascii?Q?pIumQvQknOrBTXp1PJBif1z1Tz3g/A7GZVbvzUsHt+RhPIPLjOSXv3ya6/6s?= =?us-ascii?Q?Ge80Nf/NqIpsd7jF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?Q?2hUx3u+kbB/lqNaQJE/Dbwtlt27vPhWKc0GbfBqn7EZIiTbgQ/0MtLNr76/Q?= =?us-ascii?Q?Hqa40FwHU5nB/NcQOH0mbqLsOtIcu9kMlrDZ0XB7kWS4qsp8/Y2L2Vot9qZ/?= =?us-ascii?Q?8TomPUnHbsuqw3kFWKQbnRrt8K4LI1oCRAS9e0Asa2NT/mjiKltoqAaFTopx?= =?us-ascii?Q?VQ=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: f1a8df71-1ca4-4454-2007-08dc9040367d X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2024 09:14:25.8639 (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: mkBZ4Dd8kHZ413ZGhF2gBDbq7O8xl5a6so5O7KOl0qYT2AdDaQQinFdOqawnJwbz5YJozBWu7tEnTDgnTL3+ZJVfKNbHY4UXNj4dt7wLvlc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR13MB5523 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org The IPv6 TTL and DSCP flow action logic use 'ttl_tos_flag' wrongly, actually it should use 'tc_hl_flag'. Fixes: ac12e126c482 ("net/nfp: support TTL flow action") Fixes: 3202b003bec1 ("net/nfp: support IPv6 DSCP flow action") Cc: stable@dpdk.org 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 bd77807db0..45a020b228 100644 --- a/drivers/net/nfp/flower/nfp_flower_flow.c +++ b/drivers/net/nfp/flower/nfp_flower_flow.c @@ -3833,7 +3833,7 @@ nfp_flow_compile_action(struct nfp_flower_representor *representor, ttl_tos_flag = true; } } else { - nfp_flow_action_set_hl(position, action, ttl_tos_flag); + nfp_flow_action_set_hl(position, action, tc_hl_flag); if (!tc_hl_flag) { position += sizeof(struct nfp_fl_act_set_ipv6_tc_hl_fl); tc_hl_flag = true; @@ -3850,7 +3850,7 @@ nfp_flow_compile_action(struct nfp_flower_representor *representor, break; case RTE_FLOW_ACTION_TYPE_SET_IPV6_DSCP: PMD_DRV_LOG(DEBUG, "Process RTE_FLOW_ACTION_TYPE_SET_IPV6_DSCP"); - nfp_flow_action_set_tc(position, action, ttl_tos_flag); + nfp_flow_action_set_tc(position, action, tc_hl_flag); if (!tc_hl_flag) { position += sizeof(struct nfp_fl_act_set_ipv6_tc_hl_fl); tc_hl_flag = true; -- 2.39.1