|
@@ -1705,6 +1705,7 @@ wlan_cfg_soc_attach(struct cdp_ctrl_objmgr_psoc *psoc)
|
|
{
|
|
{
|
|
struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx =
|
|
struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx =
|
|
qdf_mem_malloc(sizeof(struct wlan_cfg_dp_soc_ctxt));
|
|
qdf_mem_malloc(sizeof(struct wlan_cfg_dp_soc_ctxt));
|
|
|
|
+ uint32_t gro_bit_set;
|
|
|
|
|
|
if (!wlan_cfg_ctx)
|
|
if (!wlan_cfg_ctx)
|
|
return NULL;
|
|
return NULL;
|
|
@@ -1767,7 +1768,12 @@ wlan_cfg_soc_attach(struct cdp_ctrl_objmgr_psoc *psoc)
|
|
wlan_cfg_ctx->tso_enabled = cfg_get(psoc, CFG_DP_TSO);
|
|
wlan_cfg_ctx->tso_enabled = cfg_get(psoc, CFG_DP_TSO);
|
|
wlan_cfg_ctx->lro_enabled = cfg_get(psoc, CFG_DP_LRO);
|
|
wlan_cfg_ctx->lro_enabled = cfg_get(psoc, CFG_DP_LRO);
|
|
wlan_cfg_ctx->sg_enabled = cfg_get(psoc, CFG_DP_SG);
|
|
wlan_cfg_ctx->sg_enabled = cfg_get(psoc, CFG_DP_SG);
|
|
- wlan_cfg_ctx->gro_enabled = cfg_get(psoc, CFG_DP_GRO);
|
|
|
|
|
|
+ gro_bit_set = cfg_get(psoc, CFG_DP_GRO);
|
|
|
|
+ if (gro_bit_set & DP_GRO_ENABLE_BIT_SET) {
|
|
|
|
+ wlan_cfg_ctx->gro_enabled = true;
|
|
|
|
+ if (gro_bit_set & DP_FORCE_USE_GRO_BIT_SET)
|
|
|
|
+ wlan_cfg_ctx->force_gro_enabled = true;
|
|
|
|
+ }
|
|
wlan_cfg_ctx->ol_tx_csum_enabled = cfg_get(psoc, CFG_DP_OL_TX_CSUM);
|
|
wlan_cfg_ctx->ol_tx_csum_enabled = cfg_get(psoc, CFG_DP_OL_TX_CSUM);
|
|
wlan_cfg_ctx->ol_rx_csum_enabled = cfg_get(psoc, CFG_DP_OL_RX_CSUM);
|
|
wlan_cfg_ctx->ol_rx_csum_enabled = cfg_get(psoc, CFG_DP_OL_RX_CSUM);
|
|
wlan_cfg_ctx->rawmode_enabled = cfg_get(psoc, CFG_DP_RAWMODE);
|
|
wlan_cfg_ctx->rawmode_enabled = cfg_get(psoc, CFG_DP_RAWMODE);
|