qcacmn: get NAPI scale factor through ini configuration

NAPI scale factor should be configured based on the board
type. for example Hawkeye could have a different scale factor
compared to Alder.

CRs-Fixed: 3212330
Change-Id: Ie0bad6aade9ca9379997aa974154f9fb903ab93e
Tento commit je obsažen v:
Tallapragada Kalyan
2022-06-03 00:14:45 +05:30
odevzdal Madan Koyyalamudi
rodič 5c0f11603d
revize 204b765390
5 změnil soubory, kde provedl 41 přidání a 3 odebrání

Zobrazit soubor

@@ -2154,6 +2154,8 @@ wlan_cfg_soc_attach(struct cdp_ctrl_objmgr_psoc *psoc)
wlan_cfg_ctx->mpdu_retry_threshold_2 =
cfg_get(psoc, CFG_DP_MPDU_RETRY_THRESHOLD_2);
wlan_cfg_ctx->napi_scale_factor = cfg_get(psoc,
CFG_DP_NAPI_SCALE_FACTOR);
return wlan_cfg_ctx;
}
@@ -3401,3 +3403,8 @@ bool wlan_cfg_get_txmon_hw_support(struct wlan_cfg_dp_soc_ctxt *cfg)
}
qdf_export_symbol(wlan_cfg_get_txmon_hw_support);
uint8_t wlan_cfg_get_napi_scale_factor(struct wlan_cfg_dp_soc_ctxt *cfg)
{
return cfg->napi_scale_factor;
}