qcacmn: Replace target related feature values with INI parameters

Introduce INI parameters to fetch feature related values based on target
type and add CDP interface to get dp INI parameters to control path

Change-Id: Id6a3f409106eb7dc01b08a3f1ec00dbe7efc359f
This commit is contained in:
Akshay Kosigi
2018-09-03 21:42:27 +05:30
committad av nshrivas
förälder 169fce61ef
incheckning a4f6e173c1
7 ändrade filer med 138 tillägg och 7 borttagningar

Visa fil

@@ -164,9 +164,15 @@ struct wlan_cfg_dp_soc_ctxt {
int int_host2rxdma_ring_mask[WLAN_CFG_INT_NUM_CONTEXTS];
int hw_macid[MAX_PDEV_CNT];
int base_hw_macid;
bool lro_enabled;
bool rx_hash;
bool tso_enabled;
bool lro_enabled;
bool sg_enabled;
bool gro_enabled;
bool ol_tx_csum_enabled;
bool ol_rx_csum_enabled;
bool rawmode_enabled;
bool peer_flow_ctrl_enabled;
bool napi_enabled;
bool tcp_udp_checksumoffload;
bool defrag_timeout_check;
@@ -866,6 +872,17 @@ wlan_cfg_get_dp_soc_rxdma_refill_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
int
wlan_cfg_get_dp_soc_rxdma_err_dst_ring_size(struct wlan_cfg_dp_soc_ctxt *cfg);
/*
* wlan_cfg_get_dp_caps - Get dp capablities
* @wlan_cfg_soc_ctx
* @dp_caps: enum for dp capablities
*
* Return: bool if a dp capabilities is enabled
*/
bool
wlan_cfg_get_dp_caps(struct wlan_cfg_dp_soc_ctxt *cfg,
enum cdp_capabilities dp_caps);
#ifdef QCA_LL_TX_FLOW_CONTROL_V2
int wlan_cfg_get_tx_flow_stop_queue_th(struct wlan_cfg_dp_soc_ctxt *cfg);