qcacmn: Add dp_tx_desc_limits ini config

Add dp_tx_desc_limit for 5G high, 2G and 5G low to limit the
number of software tx_desc to be allocated.

Change-Id: If97e858b73aafaed0e21fc8f6e0337e467ce0ecc
This commit is contained in:
Prathyusha Guduri
2019-07-19 19:43:39 +05:30
committed by nshrivas
parent bf48fb69ac
commit 36ce817b7e
4 changed files with 99 additions and 0 deletions

View File

@@ -147,6 +147,9 @@ struct wlan_srng_cfg {
* @enable_data_stall_detection: flag to enable data stall detection
* @disable_intra_bss_fwd: flag to disable intra bss forwarding
* @rxdma1_enable: flag to indicate if rxdma1 is enabled
* @tx_desc_limit_0: tx_desc limit for 5G H
* @tx_desc_limit_1: tx_desc limit for 2G
* @tx_desc_limit_2: tx_desc limit for 5G L
* @tx_comp_loop_pkt_limit: Max # of packets to be processed in 1 tx comp loop
* @rx_reap_loop_pkt_limit: Max # of packets to be processed in 1 rx reap loop
* @rx_hp_oos_update_limit: Max # of HP OOS (out of sync) updates
@@ -228,6 +231,9 @@ struct wlan_cfg_dp_soc_ctxt {
bool disable_intra_bss_fwd;
bool rxdma1_enable;
int max_ast_idx;
int tx_desc_limit_0;
int tx_desc_limit_1;
int tx_desc_limit_2;
#ifdef WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT
uint32_t tx_comp_loop_pkt_limit;
uint32_t rx_reap_loop_pkt_limit;
@@ -991,6 +997,33 @@ wlan_cfg_get_dp_soc_reo_cmd_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
int
wlan_cfg_get_dp_soc_reo_status_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
/*
* wlan_cfg_get_dp_soc_tx_desc_limit_0 - Get tx desc limit for 5G H
* @wlan_cfg_soc_ctx
*
* Return: tx desc limit for 5G H
*/
int
wlan_cfg_get_dp_soc_tx_desc_limit_0(struct wlan_cfg_dp_soc_ctxt *cfg);
/*
* wlan_cfg_get_dp_soc_tx_desc_limit_1 - Get tx desc limit for 2G
* @wlan_cfg_soc_ctx
*
* Return: tx desc limit for 2G
*/
int
wlan_cfg_get_dp_soc_tx_desc_limit_1(struct wlan_cfg_dp_soc_ctxt *cfg);
/*
* wlan_cfg_get_dp_soc_tx_desc_limit_2 - Get tx desc limit for 5G L
* @wlan_cfg_soc_ctx
*
* Return: tx desc limit for 5G L
*/
int
wlan_cfg_get_dp_soc_tx_desc_limit_2(struct wlan_cfg_dp_soc_ctxt *cfg);
/*
* wlan_cfg_get_dp_soc_rxdma_refill_ring_size - Get rxdma refill ring size
* @wlan_cfg_soc_ctx