qcacld-3.0: Add ini support to change ce service max rx indication flush
Add ini support to change ce service max rx indication flush num to handle given number of rx indication at a time to maintain napi yield timelines. This is used to tune the yield time based on system needs. Change-Id: Ib66f23c83d64f2bc16a352067816512c3d8defef CRs-Fixed: 2068367
This commit is contained in:
parent
865f8b8ffc
commit
04eed33241
@ -9984,6 +9984,28 @@ enum dot11p_mode {
|
||||
#define CFG_CE_SERVICE_MAX_YIELD_TIME_MAX (10)
|
||||
#define CFG_CE_SERVICE_MAX_YIELD_TIME_DEFAULT (10)
|
||||
|
||||
/*
|
||||
* <ini>
|
||||
* ce_service_max_rx_ind_flush - Control to set ce service max rx ind flush
|
||||
*
|
||||
* @Min: 1
|
||||
* @Max: 32
|
||||
* @Default: 1
|
||||
*
|
||||
* This ini is used to set ce service max rx ind flush
|
||||
*
|
||||
* Supported Feature: NAPI
|
||||
*
|
||||
* Usage: Internal
|
||||
*
|
||||
* </ini>
|
||||
*/
|
||||
#define CFG_CE_SERVICE_MAX_RX_IND_FLUSH_NAME "ce_service_max_rx_ind_flush"
|
||||
#define CFG_CE_SERVICE_MAX_RX_IND_FLUSH_MIN (1)
|
||||
#define CFG_CE_SERVICE_MAX_RX_IND_FLUSH_MAX (32)
|
||||
#define CFG_CE_SERVICE_MAX_RX_IND_FLUSH_DEFAULT (32)
|
||||
|
||||
|
||||
/* List of RPS CPU maps for different rx queues registered by WLAN driver
|
||||
* Ref - Kernel/Documentation/networking/scaling.txt
|
||||
* RPS CPU map for a particular RX queue, selects CPU(s) for bottom half
|
||||
@ -14810,6 +14832,7 @@ struct hdd_config {
|
||||
uint8_t dot11p_mode;
|
||||
uint8_t rx_mode;
|
||||
uint8_t ce_service_max_yield_time;
|
||||
uint8_t ce_service_max_rx_ind_flush;
|
||||
uint8_t cpu_map_list[CFG_RPS_RX_QUEUE_CPU_MAP_LIST_LEN];
|
||||
#ifdef FEATURE_WLAN_EXTSCAN
|
||||
bool extscan_enabled;
|
||||
|
@ -4151,6 +4151,13 @@ struct reg_table_entry g_registry_table[] = {
|
||||
CFG_CE_SERVICE_MAX_YIELD_TIME_MIN,
|
||||
CFG_CE_SERVICE_MAX_YIELD_TIME_MAX),
|
||||
|
||||
REG_VARIABLE(CFG_CE_SERVICE_MAX_RX_IND_FLUSH_NAME, WLAN_PARAM_Integer,
|
||||
struct hdd_config, ce_service_max_rx_ind_flush,
|
||||
VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
|
||||
CFG_CE_SERVICE_MAX_RX_IND_FLUSH_DEFAULT,
|
||||
CFG_CE_SERVICE_MAX_RX_IND_FLUSH_MIN,
|
||||
CFG_CE_SERVICE_MAX_RX_IND_FLUSH_MAX),
|
||||
|
||||
REG_VARIABLE_STRING(CFG_RPS_RX_QUEUE_CPU_MAP_LIST_NAME,
|
||||
WLAN_PARAM_String,
|
||||
struct hdd_config, cpu_map_list,
|
||||
@ -6858,6 +6865,9 @@ void hdd_cfg_print(struct hdd_context *hdd_ctx)
|
||||
hdd_debug("Name = [%s] value = [%d]",
|
||||
CFG_CE_SERVICE_MAX_YIELD_TIME_NAME,
|
||||
hdd_ctx->config->ce_service_max_yield_time);
|
||||
hdd_debug("Name = [%s] value = [%d]",
|
||||
CFG_CE_SERVICE_MAX_RX_IND_FLUSH_NAME,
|
||||
hdd_ctx->config->ce_service_max_rx_ind_flush);
|
||||
hdd_debug("Name = [%s] Value = [%u]",
|
||||
CFG_CE_CLASSIFY_ENABLE_NAME,
|
||||
hdd_ctx->config->ce_classify_enabled);
|
||||
|
@ -263,7 +263,8 @@ int hdd_hif_open(struct device *dev, void *bdev, const struct hif_bus_id *bid,
|
||||
hif_set_ce_service_max_yield_time(hif_ctx,
|
||||
hdd_ctx->config->ce_service_max_yield_time);
|
||||
pmo_ucfg_psoc_set_hif_handle(hdd_ctx->hdd_psoc, hif_ctx);
|
||||
|
||||
hif_set_ce_service_max_rx_ind_flush(hif_ctx,
|
||||
hdd_ctx->config->ce_service_max_rx_ind_flush);
|
||||
return 0;
|
||||
|
||||
err_hif_close:
|
||||
|
Loading…
Reference in New Issue
Block a user