qcacld-3.0: Add more DP rings to prealloc

Add RXDMA_DST, SW2WBM_RELEASE and RXDMA_BUF rings to DP prealloc
infrastructure.

CRs-Fixed: 2747089
Change-Id: Ic744fde5b5ebccc6b344e60722d03a0da02c5cf6
This commit is contained in:
Mohit Khanna
2020-08-03 18:43:02 -07:00
committed by snandini
parent e3d78d5d9d
commit 8d17532e58

View File

@@ -133,6 +133,7 @@ int dp_rx_tm_get_pending(ol_txrx_soc_handle soc)
#endif
#ifdef DP_MEM_PRE_ALLOC
/* Num elements in REO ring */
#define REO_DST_RING_SIZE 1024
@@ -182,8 +183,16 @@ static struct dp_consistent_prealloc g_dp_consistent_allocs[] = {
{WBM2SW_RELEASE, (sizeof(struct wbm_release_ring)) * WBM2SW_RELEASE_RING_SIZE, 0, NULL, NULL, 0, 0},
{WBM2SW_RELEASE, (sizeof(struct wbm_release_ring)) * WBM2SW_RELEASE_RING_SIZE, 0, NULL, NULL, 0, 0},
{WBM2SW_RELEASE, (sizeof(struct wbm_release_ring)) * WBM2SW_RELEASE_RING_SIZE, 0, NULL, 0, 0},
/* SW2WBM link descriptor return ring */
{SW2WBM_RELEASE, (sizeof(struct wbm_release_ring)) * WLAN_CFG_WBM_RELEASE_RING_SIZE, 0, NULL, 0, 0},
/* 1 WBM idle link desc ring */
{WBM_IDLE_LINK, (sizeof(struct wbm_link_descriptor_ring)) * WBM_IDLE_LINK_RING_SIZE, 0, NULL, NULL, 0, 0},
/* 2 RXDMA DST ERR rings */
{RXDMA_DST, (sizeof(struct reo_entrance_ring)) * WLAN_CFG_RXDMA_ERR_DST_RING_SIZE, 0, NULL, NULL, 0, 0},
{RXDMA_DST, (sizeof(struct reo_entrance_ring)) * WLAN_CFG_RXDMA_ERR_DST_RING_SIZE, 0, NULL, NULL, 0, 0},
/* REFILL ring 0 */
{RXDMA_BUF, (sizeof(struct wbm_buffer_ring)) * WLAN_CFG_RXDMA_REFILL_RING_SIZE, 0, NULL, NULL, 0, 0},
};
void dp_prealloc_deinit(void)