qcacmn: ini config to allocate special TX descriptors of SOC

An INI dp_tx_spl_device_limit is defined and can be used to configure the
limit of TX descriptors that can reserved on the SOC to handle
special frames like EAPOL.

CRs-Fixed: 3343207
Change-Id: Ic84a11249880a3541749a72ac6d60df548f2bc5c
This commit is contained in:
Sreeramya Soratkal
2022-11-22 12:44:58 +05:30
committed by Madan Koyyalamudi
parent 88124ec9b4
commit 6eba2a4482
5 changed files with 37 additions and 1 deletions

View File

@@ -250,6 +250,7 @@ struct wlan_srng_cfg {
* @tx_desc_limit_1: tx_desc limit for 2 GHz
* @tx_desc_limit_2: tx_desc limit for 5 GHz Low
* @tx_device_limit: tx device limit
* @tx_spl_device_limit: tx device limit for special frames
* @tx_sw_internode_queue: tx sw internode queue
* @mon_drop_thresh:
* @tx_comp_loop_pkt_limit: Max # of packets to be processed in 1 tx comp loop
@@ -428,6 +429,7 @@ struct wlan_cfg_dp_soc_ctxt {
int tx_desc_limit_1;
int tx_desc_limit_2;
int tx_device_limit;
int tx_spl_device_limit;
int tx_sw_internode_queue;
int mon_drop_thresh;
#ifdef WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT
@@ -1601,6 +1603,16 @@ wlan_cfg_get_dp_soc_tx_desc_limit_2(struct wlan_cfg_dp_soc_ctxt *cfg);
int
wlan_cfg_get_dp_soc_tx_device_limit(struct wlan_cfg_dp_soc_ctxt *cfg);
/**
* wlan_cfg_get_dp_soc_tx_spl_device_limit - Get tx device limit for special
* frames
* @cfg: Configuration Handle
*
* Return: tx device limit for special frames
*/
int
wlan_cfg_get_dp_soc_tx_spl_device_limit(struct wlan_cfg_dp_soc_ctxt *cfg);
/**
* wlan_cfg_get_dp_soc_tx_sw_internode_queue - Get tx sw internode queue
* @cfg: soc configuration context