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 26A2145AFE; Thu, 10 Oct 2024 09:46:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B4606402F2; Thu, 10 Oct 2024 09:46:23 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2091.outbound.protection.outlook.com [40.107.94.91]) by mails.dpdk.org (Postfix) with ESMTP id 1BE36402D8 for ; Thu, 10 Oct 2024 09:46:21 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=povSYh9XiwENmJvLpyeHtRFQ6akuunk695JlzuWiQtlAvBsDnk78ieWoWqjJi27kH8XcZ6NG/sS2puXPgPDRHHuIBSQhpIAnHdysNYJiC+sCoDGYTCgqJKDhKUj4tEWhHYnKL93mcvrXTRFNRSz1dK+QUY0mCIHFE1JJtDvTnty/bRqtjhf5UvSIPj1aZwJo4pqxbB5Dkb4iDUAfttLHgdq3CPC6S1HUGeAgG9YoVzsLByEYUUJPViW/hCKLQPsHD7f+GyuysAXIO5nZaagS6erBPgrarXO40srrdm1wtRwfKBHaccqJ2x/GczwdZxmYaRozKsgOCQyOXvAQXDU4HQ== 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=yPoctAcVmqWmAlU3vY3w9zZ4X1GWUSBtFQLrivU7z/Y=; b=xc8OKuW2QpZYxZizcJMSihpb3BODcfjZb7b1zVzwfEINCAjw+l48n2k8Gzef13KrodoW+hRRCVlUye8KiKuxDIMP/mKI9P2bJ0hpF9W15q8tZXfyuNhqjeJVVFcLT+YV0UZ5guiKU9wMdN5AYCt92VczTkdlGhnTHOxuLjVWBghZyp9Jsu8f0xd0/QS3as7mB/SotECE5wx0cCl5XMqNFZv2zQBvNC14qntXfMnDbAtGpf7vlYvF9Uj0NYEZ145iiwsOzHhSE0/+fJRhPuySQU486rvjpmO9GnSPRej79rkuSsbD93Mmsc6jqDxkmc51lWJzjBV15yg8Y+ARyey4pA== 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=yPoctAcVmqWmAlU3vY3w9zZ4X1GWUSBtFQLrivU7z/Y=; b=ET9TgjwpCy1WFDzPR5p6Q1reURNVrQcpQv/qIzNGKZk4s038rsnBsoJ4m01yk5Uweh43AfJu/ufx++bntcddehFM+3rwbRYNgja5OTQa0jwIU7MtCHH+48PORj4fn+B27jzXGLooeRYlroi7GZx5jRKC2HPxXMnqhv4wsC0Demw= 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 DS1PR13MB7099.namprd13.prod.outlook.com (2603:10b6:8:210::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.16; Thu, 10 Oct 2024 07:46:18 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833%5]) with mapi id 15.20.8026.020; Thu, 10 Oct 2024 07:46:18 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Long Wu , Chaoyong He Subject: [PATCH 1/2] net/nfp: rename flower service flag Date: Thu, 10 Oct 2024 15:45:56 +0800 Message-Id: <20241010074557.3622716-2-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20241010074557.3622716-1-chaoyong.he@corigine.com> References: <20241010074557.3622716-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR01CA0033.apcprd01.prod.exchangelabs.com (2603:1096:4:192::23) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|DS1PR13MB7099:EE_ X-MS-Office365-Filtering-Correlation-Id: 51025c20-40c7-4aa2-cd03-08dce8ffa035 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|376014|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?FvDRXHhehJVwmtn41Sip1G2l13B0Amz27kaZ/nDWigYumPhFQMyclMzNDqMh?= =?us-ascii?Q?ORZFZROgro0ayr+AlAp8I0bba7ZcQdrFD3HVzPYX2YAQu48VMTinc8Y61rTr?= =?us-ascii?Q?mq5QR5mxHOTXsM1bEbEQH5kaAGz2AzSM3QFpz3AkqrrKRIq/NwEaqVsjnuew?= =?us-ascii?Q?mzpuKdg+/milsMMG0fytVYKv2EVtJEUIwyO6l+cNJ+KR/F0nipq8Vl86wnAU?= =?us-ascii?Q?VSBAxaSi1ssWvf+TpvIbyp3gDJW54nvIWApQkAK+HQYiaWtKKhkoyb8GY+VT?= =?us-ascii?Q?v1adS9MJ3hC7lf10R98nJwoL/vJjFcVwsZ1sF0gsNmNLzid6ezQu8EXen7DZ?= =?us-ascii?Q?vuUvCwJVTWMgcfF0FfvrRNZRVPy5x9mApUF4RoIknimnP8DZmwl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9+0pcwtfN0hmk98e7oHWtaScTsiTfDqJ+PY1Nu4jB4fN8ml?= =?us-ascii?Q?mRYkbSgfdzNqzbt6dEnPxPCUxAAApW4dgi7XvYCoPAWUKQ=3D=3D?= X-Forefront-Antispam-Report: CIP:255.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)(1800799024)(52116014)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?4FGv6/FDdFSz48MZfy7mEX7rgw8K0Vr7XB15oMvpePiwsodV/jgBY6cYdQLL?= =?us-ascii?Q?WIp9R4rqD+hoPpjQC24P8dH4WL94uCr0dR/KTBnPaQmlEjXLZjCnGMqgSbYn?= =?us-ascii?Q?3BIpBfZk0WRkFgMX5vNnUFhHZD74E6qRj5Und4q4UaX7J7hZl6jYj4DNoy/y?= =?us-ascii?Q?NDowpCNePATyXSUBc/Uy3wFiaTYWeSBcBUn2L7DfUK0L13VnQz07hhDfBGmH?= =?us-ascii?Q?DpRXFlwydyP4bVKdgVknmgRMZnxjYEueL0F/APo3czPtzFAF20y6Jcf3Skow?= =?us-ascii?Q?nficjLScLRr3llQdkOHaEN4oZYJtw+9r+eCpAvGhOwxXVblaiqlJVwMOz/Ew?= =?us-ascii?Q?vicCEZ7bC7pZRtdLu1ycw1WULgws928C6jGN9slvWxXRXbT75+NFZTqjS/qb?= =?us-ascii?Q?zv2nP8HhgdnUer/Ibs/h5nTXxHuC/EY8umMY6EPMwJbl55WZ8pE9eW5HRnhl?= =?us-ascii?Q?ATBgRjrAIOrqEXiv1bhwUpiolyaA01bl6nAW/u363ZmRXM1gUNExAOJ/yLzT?= =?us-ascii?Q?BU/wa5oRj5PTCURyBHcfPh9weEkfrB4QXyTvDlY0vvBho/slC1WIYJigWxGv?= =?us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ly7g+hAKU6kg1fF70mcosXKKDgoC7n8m?= =?us-ascii?Q?1eYLF0z0xNsHmnbe0biD/gGws1HTO9Q9meODenEWxekx4e/+6XjpxhvDPt40?= =?us-ascii?Q?mn+77/VkoPu1JsglYzLKYAJHY7ijBPfQBdnMH5p/6uhgA1dnoQYJRf2ZTpC4?= =?us-ascii?Q?zQ=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 51025c20-40c7-4aa2-cd03-08dce8ffa035 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2024 07:46:18.3583 (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: 9Zz4Yz4/bir1/K4KIyf+59eAv94eH+0PPUqzFk5DdPU38P2959y7GG40cotjJOXvWKzQ57boLmFJvxDyjHVbdbNLvz8o+v4ytIOBS84JaGw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS1PR13MB7099 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 From: Long Wu Rename the flower service flag to make the logic more readable. Signed-off-by: Long Wu Reviewed-by: Chaoyong He --- drivers/net/nfp/flower/nfp_flower_service.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/nfp/flower/nfp_flower_service.c b/drivers/net/nfp/flower/nfp_flower_service.c index 6353015c66..782f083b71 100644 --- a/drivers/net/nfp/flower/nfp_flower_service.c +++ b/drivers/net/nfp/flower/nfp_flower_service.c @@ -18,7 +18,7 @@ struct nfp_flower_service { /** Flower service is enabled */ - bool enabled; + bool service_enabled; /** Flower service info */ struct nfp_service_info info; /** Store flower cards' information */ @@ -41,7 +41,7 @@ nfp_flower_service_func(void *arg) struct nfp_flower_service *service_handle; service_handle = arg; - if (!service_handle->enabled) + if (!service_handle->service_enabled) return 0; rte_spinlock_lock(&service_handle->spinlock); @@ -73,7 +73,7 @@ nfp_flower_service_enable(struct nfp_flower_service *service_handle) return ret; rte_spinlock_init(&service_handle->spinlock); - service_handle->enabled = true; + service_handle->service_enabled = true; return 0; } @@ -109,7 +109,7 @@ nfp_flower_service_start(struct nfp_net_hw_priv *hw_priv) } /* Enable flower service when driver initializes the first NIC */ - if (!service_handle->enabled) { + if (!service_handle->service_enabled) { ret = nfp_flower_service_enable(service_handle); if (ret != 0) { PMD_DRV_LOG(ERR, "Could not enable flower service"); -- 2.39.1