qcacmn: Reuse Rx Descriptor Pool Array

wifi up/down will cause soc stop and soc
start which will allocate rx desc pool
array memory for each wifi up

This creates memory fragmentation issue
hence reuse Rx descriptor pool array
across wifi up/down and free only nbufs

CRs-Fixed: 2394666
Change-Id: Ic897c733dfba3d8829e2f2f51099cd615b8a7ea2
This commit is contained in:
phadiman
2019-02-20 14:00:00 +05:30
committed by nshrivas
parent 2c146ea33a
commit 449a268392
6 changed files with 62 additions and 14 deletions

View File

@@ -832,8 +832,12 @@ dp_rx_pdev_mon_status_detach(struct dp_pdev *pdev, int mac_id)
struct rx_desc_pool *rx_desc_pool;
rx_desc_pool = &soc->rx_desc_status[mac_id];
if (rx_desc_pool->pool_size != 0)
dp_rx_desc_pool_free(soc, mac_id, rx_desc_pool);
if (rx_desc_pool->pool_size != 0) {
if (!dp_is_soc_reinit(soc))
dp_rx_desc_pool_free(soc, mac_id, rx_desc_pool);
else
dp_rx_desc_nbuf_pool_free(soc, rx_desc_pool);
}
return QDF_STATUS_SUCCESS;
}