From: Ruifeng Wang <ruifeng.wang@arm.com>
To: ajit.khaparde@broadcom.com, somnath.kotur@broadcom.com
Cc: dev@dpdk.org, honnappa.nagarahalli@arm.com, nd@arm.com,
Ruifeng Wang <ruifeng.wang@arm.com>,
Kathleen Capella <kathleen.capella@arm.com>
Subject: [PATCH 2/2] net/bnxt: remove some dead code
Date: Tue, 10 May 2022 14:31:18 +0800 [thread overview]
Message-ID: <20220510063118.449216-3-ruifeng.wang@arm.com> (raw)
In-Reply-To: <20220510063118.449216-1-ruifeng.wang@arm.com>
Removed some macros that were defined but not used in this driver.
As a result, rte_smp_xx occurrence is removed from this driver.
Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Kathleen Capella <kathleen.capella@arm.com>
---
drivers/net/bnxt/bnxt_cpr.h | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/drivers/net/bnxt/bnxt_cpr.h b/drivers/net/bnxt/bnxt_cpr.h
index 52db382c2f..dab6bed2ae 100644
--- a/drivers/net/bnxt/bnxt_cpr.h
+++ b/drivers/net/bnxt/bnxt_cpr.h
@@ -39,25 +39,11 @@ struct bnxt_db_info;
#define B_CP_DB_DISARM(cpr) (*(uint32_t *)((cpr)->cp_db.doorbell) = \
DB_KEY_CP | DB_IRQ_DIS)
-#define B_CP_DB_IDX_ARM(cpr, cons) \
- (*(uint32_t *)((cpr)->cp_db.doorbell) = (DB_CP_REARM_FLAGS | \
- (cons)))
-
-#define B_CP_DB_IDX_DISARM(cpr, cons) do { \
- rte_smp_wmb(); \
- (*(uint32_t *)((cpr)->cp_db.doorbell) = (DB_CP_FLAGS | \
- (cons)); \
-} while (0)
#define B_CP_DIS_DB(cpr, raw_cons) \
rte_write32_relaxed((DB_CP_FLAGS | \
DB_RING_IDX(&((cpr)->cp_db), raw_cons)), \
((cpr)->cp_db.doorbell))
-#define B_CP_DB(cpr, raw_cons, ring_mask) \
- rte_write32((DB_CP_FLAGS | \
- RING_CMPL((ring_mask), raw_cons)), \
- ((cpr)->cp_db.doorbell))
-
struct bnxt_db_info {
void *doorbell;
union {
--
2.25.1
next prev parent reply other threads:[~2022-05-10 6:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-10 6:31 [PATCH 0/2] atomic changes Ruifeng Wang
2022-05-10 6:31 ` [PATCH 1/2] net/bnxt: use compiler atomics for stats Ruifeng Wang
2022-05-10 6:31 ` Ruifeng Wang [this message]
2022-05-11 6:08 ` [PATCH 2/2] net/bnxt: remove some dead code Ruifeng Wang
2022-05-23 0:55 ` [PATCH 0/2] atomic changes Ajit Khaparde
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=20220510063118.449216-3-ruifeng.wang@arm.com \
--to=ruifeng.wang@arm.com \
--cc=ajit.khaparde@broadcom.com \
--cc=dev@dpdk.org \
--cc=honnappa.nagarahalli@arm.com \
--cc=kathleen.capella@arm.com \
--cc=nd@arm.com \
--cc=somnath.kotur@broadcom.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).