qcacmn: Update prealloc size for srng from CFG

Update the prealloc size for RXDMA_BUF and REO_DST
rings using the ini values which have been configured.

Change-Id: Id47fbca3a79b37bba902d1b5bd0bf8c6073648cc
CRs-Fixed: 3283986
This commit is contained in:
Rakesh Pillai
2022-09-05 03:50:08 -07:00
committed by Madan Koyyalamudi
parent cd40aa85ab
commit ffec5f3f9e
2 changed files with 8 additions and 0 deletions

View File

@@ -3929,6 +3929,8 @@ wlan_cfg_get_prealloc_cfg(struct cdp_ctrl_objmgr_psoc *ctrl_psoc,
if (!ctrl_psoc || !cfg)
return;
cfg->num_reo_dst_ring_entries = cfg_get(ctrl_psoc,
CFG_DP_RX_DESTINATION_RING);
cfg->num_tx_ring_entries = cfg_get(ctrl_psoc, CFG_DP_TX_RING_SIZE);
cfg->num_tx_comp_ring_entries = cfg_get(ctrl_psoc,
CFG_DP_TX_COMPL_RING_SIZE);
@@ -3940,6 +3942,8 @@ wlan_cfg_get_prealloc_cfg(struct cdp_ctrl_objmgr_psoc *ctrl_psoc,
CFG_DP_REO_EXCEPTION_RING);
cfg->num_tx_desc = cfg_get(ctrl_psoc, CFG_DP_TX_DESC);
cfg->num_tx_ext_desc = cfg_get(ctrl_psoc, CFG_DP_TX_EXT_DESC);
cfg->num_rxdma_buf_ring_entries = cfg_get(ctrl_psoc,
CFG_DP_RXDMA_BUF_RING);
}
#ifdef WLAN_FEATURE_PKT_CAPTURE_V2

View File

@@ -475,6 +475,8 @@ struct wlan_cfg_dp_pdev_ctxt {
* @num_reo_exception_ring_entries: num of rx exception ring entries
* @num_tx_desc: num of tx descriptors
* @num_tx_ext_desc: num of tx ext descriptors
* @num_reo_dst_ring_entries: Number of entries in REO destination ring
* @num_rxdma_buf_ring_entries: Number of entries in rxdma buf ring
*/
struct wlan_dp_prealloc_cfg {
int num_tx_ring_entries;
@@ -484,6 +486,8 @@ struct wlan_dp_prealloc_cfg {
int num_reo_exception_ring_entries;
int num_tx_desc;
int num_tx_ext_desc;
int num_reo_dst_ring_entries;
int num_rxdma_buf_ring_entries;
};
/**