From: Chaoyong He <chaoyong.he@corigine.com>
To: dev@dpdk.org
Cc: oss-drivers@corigine.com, Long Wu <long.wu@corigine.com>,
Chaoyong He <chaoyong.he@corigine.com>
Subject: [PATCH 1/2] net/nfp: rename flower service flag
Date: Thu, 10 Oct 2024 15:45:56 +0800 [thread overview]
Message-ID: <20241010074557.3622716-2-chaoyong.he@corigine.com> (raw)
In-Reply-To: <20241010074557.3622716-1-chaoyong.he@corigine.com>
From: Long Wu <long.wu@corigine.com>
Rename the flower service flag to make the logic more readable.
Signed-off-by: Long Wu <long.wu@corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he@corigine.com>
---
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
next prev parent reply other threads:[~2024-10-10 7:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-10 7:45 [PATCH 0/2] enhance the flower service framework Chaoyong He
2024-10-10 7:45 ` Chaoyong He [this message]
2024-10-10 7:45 ` [PATCH 2/2] net/nfp: " Chaoyong He
2024-10-10 14:55 ` Stephen Hemminger
2024-10-11 2:23 ` Chaoyong He
2024-10-12 0:23 ` [PATCH 0/2] " Ferruh Yigit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241010074557.3622716-2-chaoyong.he@corigine.com \
--to=chaoyong.he@corigine.com \
--cc=dev@dpdk.org \
--cc=long.wu@corigine.com \
--cc=oss-drivers@corigine.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).