qcacmn: Propagate config parameters to datapath
Provide an API to accept the config parameters from the upper layer and store them in wlan_cfg_ctx. Enable/Disable the datapath features based on these parameters. Change-Id: Icbdc835a51a6fea87c06174e9fc63d5d007aec1d CRs-Fixed: 2097229
此提交包含在:

提交者
snandini

父節點
cfbb8952ff
當前提交
3e8add86bb
@@ -181,11 +181,6 @@
|
||||
#define WLAN_CFG_HTT_PKT_TYPE 2
|
||||
#define WLAN_CFG_MAX_PEER_ID 64
|
||||
|
||||
#ifdef WLAN_RX_HASH
|
||||
#define WLAN_RX_HASH_ENABLE 1
|
||||
#else
|
||||
#define WLAN_RX_HASH_ENABLE 0
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_MCL
|
||||
static const int tx_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS] = {
|
||||
@@ -329,9 +324,6 @@ struct wlan_cfg_dp_soc_ctxt *wlan_cfg_soc_attach()
|
||||
rxdma2host_ring_mask[i];
|
||||
}
|
||||
|
||||
wlan_cfg_ctx->rx_hash = WLAN_RX_HASH_ENABLE;
|
||||
wlan_cfg_ctx->lro_enabled = WLAN_LRO_ENABLE;
|
||||
|
||||
/* This is default mapping and can be overridden by HW config
|
||||
* received from FW */
|
||||
wlan_cfg_set_hw_macid(wlan_cfg_ctx, 0, 1);
|
||||
@@ -675,12 +667,7 @@ int wlan_cfg_get_int_timer_threshold_other(struct wlan_cfg_dp_soc_ctxt *cfg)
|
||||
*/
|
||||
int wlan_cfg_get_tx_flow_stop_queue_th(struct wlan_cfg_dp_soc_ctxt *cfg)
|
||||
{
|
||||
#ifdef QCA_WIFI_NAPIER_EMULATION
|
||||
/* TODO remove this hack when INI hookup is ready */
|
||||
return 15;
|
||||
#else
|
||||
return cfg->tx_flow_stop_queue_th;
|
||||
#endif
|
||||
return cfg->tx_flow_stop_queue_threshold;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -692,11 +679,6 @@ int wlan_cfg_get_tx_flow_stop_queue_th(struct wlan_cfg_dp_soc_ctxt *cfg)
|
||||
*/
|
||||
int wlan_cfg_get_tx_flow_start_queue_offset(struct wlan_cfg_dp_soc_ctxt *cfg)
|
||||
{
|
||||
#ifdef QCA_WIFI_NAPIER_EMULATION
|
||||
/* TODO remove this hack when INI hookup is ready */
|
||||
return 10;
|
||||
#else
|
||||
return cfg->tx_flow_start_queue_offset;
|
||||
#endif
|
||||
}
|
||||
#endif /* QCA_LL_TX_FLOW_CONTROL_V2 */
|
||||
|
新增問題並參考
封鎖使用者