qcacld-3.0: increase htt_htc_misc_pkt_list_trim trim level

2048 packets could be pending in the ce and the tx_queue
depth could be pending in the htc queue.

Change-Id: I2eedd9dd7300058a4b3024dd97c826c08f8c44bd
CRs-Fixed: 2019589
This commit is contained in:
Houston Hoffman
2017-03-14 16:17:03 -07:00
committed by Sandeep Puligilla
parent 91e7613911
commit 13f4be5fb8
2 changed files with 12 additions and 2 deletions

View File

@@ -149,6 +149,9 @@ htt_htc_misc_pkt_list_trim(struct htt_pdev_t *pdev, int level)
void htt_htc_misc_pkt_list_add(struct htt_pdev_t *pdev, struct htt_htc_pkt *pkt)
{
struct htt_htc_pkt_union *u_pkt = (struct htt_htc_pkt_union *)pkt;
int misclist_trim_level = htc_get_tx_queue_depth(pdev->htc_pdev,
pkt->htc_pkt.Endpoint)
+ HTT_HTC_PKT_MISCLIST_SIZE;
HTT_TX_MUTEX_ACQUIRE(&pdev->htt_tx_mutex);
if (pdev->htt_htc_pkt_misclist) {
@@ -159,7 +162,10 @@ void htt_htc_misc_pkt_list_add(struct htt_pdev_t *pdev, struct htt_htc_pkt *pkt)
}
HTT_TX_MUTEX_RELEASE(&pdev->htt_tx_mutex);
htt_htc_misc_pkt_list_trim(pdev, HTT_HTC_PKT_MISCLIST_SIZE);
/* only ce pipe size + tx_queue_depth could possibly be in use
* free older packets in the msiclist
*/
htt_htc_misc_pkt_list_trim(pdev, misclist_trim_level);
}
void htt_htc_misc_pkt_pool_free(struct htt_pdev_t *pdev)