qcacmn: Add cfg_dp_sg_enable to get ini key dp_sg_support
Add cfg_dp_sg_enable to get ini key dp_sg_support by cdp_cfg_get. And add some comments for CFG_DP_SG to clarify more. Change-Id: I34de242eacbdcf55398afe64b91f5534f205fa22 CRs-Fixed: 2822536
This commit is contained in:
@@ -2357,6 +2357,7 @@ enum cdp_dp_cfg {
|
||||
cfg_dp_tso_enable,
|
||||
cfg_dp_lro_enable,
|
||||
cfg_dp_gro_enable,
|
||||
cfg_dp_sg_enable,
|
||||
cfg_dp_tx_flow_start_queue_offset,
|
||||
cfg_dp_tx_flow_stop_queue_threshold,
|
||||
cfg_dp_ipa_uc_tx_buf_size,
|
||||
|
@@ -315,6 +315,7 @@ struct txrx_pdev_cfg_param_t {
|
||||
bool gro_enable;
|
||||
bool tso_enable;
|
||||
bool lro_enable;
|
||||
bool sg_enable;
|
||||
bool enable_data_stall_detection;
|
||||
bool enable_flow_steering;
|
||||
bool disable_intra_bss_fwd;
|
||||
|
@@ -10728,6 +10728,9 @@ static uint32_t dp_get_cfg(struct cdp_soc_t *soc, enum cdp_dp_cfg cfg)
|
||||
case cfg_dp_gro_enable:
|
||||
value = dpsoc->wlan_cfg_ctx->gro_enabled;
|
||||
break;
|
||||
case cfg_dp_sg_enable:
|
||||
value = dpsoc->wlan_cfg_ctx->sg_enabled;
|
||||
break;
|
||||
case cfg_dp_tx_flow_start_queue_offset:
|
||||
value = dpsoc->wlan_cfg_ctx->tx_flow_start_queue_offset;
|
||||
break;
|
||||
|
@@ -604,6 +604,22 @@
|
||||
CFG_INI_BOOL("LROEnable", WLAN_LRO_ENABLE, \
|
||||
"DP LRO Enable")
|
||||
|
||||
/*
|
||||
* <ini>
|
||||
* CFG_DP_SG - Enable the SG feature standalonely
|
||||
* @Min: 0
|
||||
* @Max: 1
|
||||
* @Default: 1
|
||||
*
|
||||
* This ini entry is used to enable/disable SG feature standalonely.
|
||||
* Also does Rome support SG on TX, lithium does not.
|
||||
* For example the lithium does not support SG on UDP frames.
|
||||
* Which is able to handle SG only for TSO frames(in case TSO is enabled).
|
||||
*
|
||||
* Usage: External
|
||||
*
|
||||
* </ini>
|
||||
*/
|
||||
#define CFG_DP_SG \
|
||||
CFG_INI_BOOL("dp_sg_support", false, \
|
||||
"DP SG Enable")
|
||||
|
Reference in New Issue
Block a user