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:
Pavankumar Nandeshwar
2023-04-26 02:35:40 -07:00
committed by Madan Koyyalamudi
parent e8753b5a36
commit a631906ba4
3 changed files with 10 additions and 4 deletions

View File

@@ -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,
desc, ring_id);
nbuf = dp_ppeds_tx_desc_free(soc, desc);
dp_tx_nbuf_dev_queue_free_no_flag(&h, nbuf);
if (desc->pool_id != DP_TX_PPEDS_POOL_ID) {
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;
continue;
}