qcacmn: Free the tx descriptors borrowed by DS
Free the tx descriptors borrowed by direct switch back to regulartx desc pools. Change-Id: I2898e57ce5eff54c1787dbebd166482d9fbfc585 CRs-Fixed: 3444334
This commit is contained in:

committed by
Madan Koyyalamudi

parent
e8753b5a36
commit
a631906ba4
@@ -107,8 +107,6 @@ enum CMEM_MEM_CLIENTS {
|
|||||||
/* The MAX PPE PRI2TID */
|
/* The MAX PPE PRI2TID */
|
||||||
#define DP_TX_INT_PRI2TID_MAX 15
|
#define DP_TX_INT_PRI2TID_MAX 15
|
||||||
|
|
||||||
#define DP_TX_PPEDS_POOL_ID 0
|
|
||||||
|
|
||||||
/* size of CMEM needed for a ppeds tx desc pool */
|
/* size of CMEM needed for a ppeds tx desc pool */
|
||||||
#define DP_TX_PPEDS_DESC_POOL_CMEM_SIZE \
|
#define DP_TX_PPEDS_DESC_POOL_CMEM_SIZE \
|
||||||
((WLAN_CFG_NUM_PPEDS_TX_DESC_MAX / DP_CC_SPT_PAGE_MAX_ENTRIES) * \
|
((WLAN_CFG_NUM_PPEDS_TX_DESC_MAX / DP_CC_SPT_PAGE_MAX_ENTRIES) * \
|
||||||
|
@@ -31,6 +31,8 @@
|
|||||||
#define DP_BLOCKMEM_SIZE 4096
|
#define DP_BLOCKMEM_SIZE 4096
|
||||||
#define WBM2_SW_PPE_REL_RING_ID 6
|
#define WBM2_SW_PPE_REL_RING_ID 6
|
||||||
#define WBM2_SW_PPE_REL_MAP_ID 11
|
#define WBM2_SW_PPE_REL_MAP_ID 11
|
||||||
|
#define DP_TX_PPEDS_POOL_ID 0xF
|
||||||
|
|
||||||
/* Alignment for consistent memory for DP rings*/
|
/* Alignment for consistent memory for DP rings*/
|
||||||
#define DP_RING_BASE_ALIGN 32
|
#define DP_RING_BASE_ALIGN 32
|
||||||
|
|
||||||
|
@@ -5646,8 +5646,14 @@ dp_tx_comp_process_desc_list(struct dp_soc *soc,
|
|||||||
dp_tx_update_ppeds_tx_comp_stats(soc, txrx_peer, &ts,
|
dp_tx_update_ppeds_tx_comp_stats(soc, txrx_peer, &ts,
|
||||||
desc, ring_id);
|
desc, ring_id);
|
||||||
|
|
||||||
nbuf = dp_ppeds_tx_desc_free(soc, desc);
|
if (desc->pool_id != DP_TX_PPEDS_POOL_ID) {
|
||||||
dp_tx_nbuf_dev_queue_free_no_flag(&h, nbuf);
|
nbuf = desc->nbuf;
|
||||||
|
dp_tx_nbuf_dev_queue_free_no_flag(&h, nbuf);
|
||||||
|
dp_tx_desc_free(soc, desc, desc->pool_id);
|
||||||
|
} else {
|
||||||
|
nbuf = dp_ppeds_tx_desc_free(soc, desc);
|
||||||
|
dp_tx_nbuf_dev_queue_free_no_flag(&h, nbuf);
|
||||||
|
}
|
||||||
desc = next;
|
desc = next;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user