mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
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:
parent
e3d78d5d9d
commit
8d17532e58
1 changed files with 9 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue