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 AC3A0A04FD; Tue, 10 May 2022 08:31:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EE3A44282E; Tue, 10 May 2022 08:31:45 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id B8B4642833 for ; Tue, 10 May 2022 08:31:44 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5373812FC; Mon, 9 May 2022 23:31:44 -0700 (PDT) Received: from net-arm-n1amp-02.shanghai.arm.com (net-arm-n1amp-02.shanghai.arm.com [10.169.210.142]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A9B203F73D; Mon, 9 May 2022 23:31:41 -0700 (PDT) From: Ruifeng Wang To: ajit.khaparde@broadcom.com, somnath.kotur@broadcom.com Cc: dev@dpdk.org, honnappa.nagarahalli@arm.com, nd@arm.com, Ruifeng Wang , Kathleen Capella Subject: [PATCH 2/2] net/bnxt: remove some dead code Date: Tue, 10 May 2022 14:31:18 +0800 Message-Id: <20220510063118.449216-3-ruifeng.wang@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220510063118.449216-1-ruifeng.wang@arm.com> References: <20220510063118.449216-1-ruifeng.wang@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 Reviewed-by: Kathleen Capella --- 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