Skip to contentSkip to conversation

net/bnxt: remove unused macros and fields

PATCH In review Lance Richardson 2 participants 2 messages Oct 8, 2020 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/bnxt: remove unused macros and fields

Remove unused structure fields and macro definitions.

---
 drivers/net/bnxt/bnxt_rxq.h |   5 --
 drivers/net/bnxt/bnxt_rxr.h | 135 ------------------------------------
 drivers/net/bnxt/bnxt_txq.h |   7 --
 drivers/net/bnxt/bnxt_txr.h |   8 ---
 4 files changed, 155 deletions(-)
drivers/net/bnxt/bnxt_rxq.h +0 -5
index f70cb0437..201bda226 100644
@@ -20,19 +20,14 @@ struct bnxt_rx_queue {
 					 * and fast path
 					 */
 	struct rte_mempool	*mb_pool; /* mbuf pool for RX ring */
-	struct rte_mbuf		*pkt_first_seg; /* 1st seg of pkt */
-	struct rte_mbuf		*pkt_last_seg; /* Last seg of pkt */
 	uint64_t		mbuf_initializer; /* val to init mbuf */
 	uint16_t		nb_rx_desc; /* num of RX desc */
-	uint16_t		rx_tail; /* cur val of RDT register */
-	uint16_t		nb_rx_hold; /* num held free RX desc */
 	uint16_t		rx_free_thresh; /* max free RX desc to hold */
 	uint16_t		queue_id; /* RX queue index */
 #if defined(RTE_ARCH_X86) || defined(RTE_ARCH_ARM64)
 	uint16_t		rxrearm_nb; /* number of descs to reinit. */
 	uint16_t		rxrearm_start; /* next desc index to reinit. */
 #endif
-	uint16_t		reg_idx; /* RX queue register index */
 	uint16_t		port_id; /* Device port identifier */
 	uint8_t			crc_len; /* 0 if CRC stripped, 4 otherwise */
 	uint8_t			rx_deferred_start; /* not in global dev start */
drivers/net/bnxt/bnxt_rxr.h +0 -135

152 lines not on this page · raw message

drivers/net/bnxt/bnxt_txq.h +0 -7
index 8033e241e..42d37f7c7 100644
@@ -14,18 +14,11 @@ struct bnxt_cp_ring_info;
 struct bnxt_tx_queue {
 	uint16_t		nb_tx_desc;    /* number of TX descriptors */
 	uint16_t		tx_free_thresh;/* minimum TX before freeing */
-	/** Index to last TX descriptor to have been cleaned. */
-	uint16_t		last_desc_cleaned;
-	/** Total number of TX descriptors ready to be allocated. */
-	uint16_t		tx_next_dd; /* next desc to scan for DD bit */
-	uint16_t		tx_next_rs; /* next desc to set RS bit */
 	uint16_t		queue_id; /* TX queue index */
-	uint16_t		reg_idx; /* TX queue register index */
 	uint16_t		port_id; /* Device port identifier */
 	uint8_t			pthresh; /* Prefetch threshold register */
 	uint8_t			hthresh; /* Host threshold register */
 	uint8_t			wthresh; /* Write-back threshold reg */
-	uint32_t		ctx_curr; /* Hardware context states */
 	uint8_t			tx_deferred_start; /* not in global dev start */
 	uint8_t			tx_started; /* TX queue is started */
 
drivers/net/bnxt/bnxt_txr.h +0 -8
index 026a65a72..c0b1fde22 100644
@@ -8,13 +8,9 @@
 
 #include <rte_io.h>
 
-#define MAX_TX_RINGS	16
-#define BNXT_TX_PUSH_THRESH 92
 #define BNXT_MAX_TSO_SEGS	32
 #define BNXT_MIN_PKT_SIZE	52
 
-#define B_TX_DB(db, prod)	rte_write32((DB_KEY_TX | (prod)), db)
-
 struct bnxt_tx_ring_info {
 	uint16_t		tx_prod;
 	uint16_t		tx_cons;
@@ -25,15 +21,11 @@ struct bnxt_tx_ring_info {
 
 	rte_iova_t		tx_desc_mapping;
 
-#define BNXT_DEV_STATE_CLOSING	0x1
-	uint32_t		dev_state;
-
 	struct bnxt_ring	*tx_ring_struct;
 };
 
 struct bnxt_sw_tx_bd {
 	struct rte_mbuf		*mbuf; /* mbuf associated with TX descriptor */
-	uint8_t			is_gso;
 	unsigned short		nr_bds;
 };
 
Signature · 1 line
2.25.1