qcacmn: Add tx device limit

Add tx device limit configurable from INI.
This is used to limit the overall tx descriptors used in the device

Change-Id: I51e9611ca14bdc146de914317b38b98329130c9f
This commit is contained in:
Prathyusha Guduri
2019-07-21 23:55:52 +05:30
zatwierdzone przez nshrivas
rodzic 36ce817b7e
commit aed67e197c
4 zmienionych plików z 33 dodań i 0 usunięć

Wyświetl plik

@@ -150,6 +150,7 @@ struct wlan_srng_cfg {
* @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_device_limit: tx device limit
* @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
@@ -234,6 +235,7 @@ struct wlan_cfg_dp_soc_ctxt {
int tx_desc_limit_0;
int tx_desc_limit_1;
int tx_desc_limit_2;
int tx_device_limit;
#ifdef WLAN_FEATURE_RX_SOFTIRQ_TIME_LIMIT
uint32_t tx_comp_loop_pkt_limit;
uint32_t rx_reap_loop_pkt_limit;
@@ -1024,6 +1026,15 @@ wlan_cfg_get_dp_soc_tx_desc_limit_1(struct wlan_cfg_dp_soc_ctxt *cfg);
int
wlan_cfg_get_dp_soc_tx_desc_limit_2(struct wlan_cfg_dp_soc_ctxt *cfg);
/*
* wlan_cfg_get_dp_soc_tx_device_limit - Get tx device limit
* @wlan_cfg_soc_ctx
*
* Return: tx device limit
*/
int
wlan_cfg_get_dp_soc_tx_device_limit(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