Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5737994 authored by Tiger Yu's avatar Tiger Yu Committed by Gerrit - the friendly Code Review server
Browse files

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
parent b94746a9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2251,6 +2251,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,
+1 −0
Original line number Diff line number Diff line
@@ -314,6 +314,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;
+3 −0
Original line number Diff line number Diff line
@@ -10169,6 +10169,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;
+16 −0
Original line number Diff line number Diff line
@@ -578,6 +578,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")