qcacmn: Tx desc counter changes
Add following Tx desc counter changes: 1. Initialize tx_desc allocated counter 2. Initialize tx desc free counter 3. Use per pool tx desc counter num_allocated to populate desc_in_use counter Change-Id: I4d80d0acfbbdd32a9f7d66e938e0a0f4e2cd7048 CRs-Fixed: 2239623
This commit is contained in:
@@ -274,7 +274,6 @@ static inline struct dp_tx_desc_s *dp_tx_desc_alloc(struct dp_soc *soc,
|
||||
soc->tx_desc[desc_pool_id].num_allocated++;
|
||||
soc->tx_desc[desc_pool_id].num_free--;
|
||||
|
||||
DP_STATS_INC(soc, tx.desc_in_use, 1);
|
||||
tx_desc->flags = DP_TX_DESC_FLAG_ALLOCATED;
|
||||
|
||||
TX_DESC_LOCK_UNLOCK(&soc->tx_desc[desc_pool_id].lock);
|
||||
@@ -346,7 +345,6 @@ dp_tx_desc_free(struct dp_soc *soc, struct dp_tx_desc_s *tx_desc,
|
||||
tx_desc->flags = 0;
|
||||
tx_desc->next = soc->tx_desc[desc_pool_id].freelist;
|
||||
soc->tx_desc[desc_pool_id].freelist = tx_desc;
|
||||
DP_STATS_DEC(soc, tx.desc_in_use, 1);
|
||||
soc->tx_desc[desc_pool_id].num_allocated--;
|
||||
soc->tx_desc[desc_pool_id].num_free++;
|
||||
|
||||
|
Reference in New Issue
Block a user