Prechádzať zdrojové kódy

qcacld-3.0: Add NAN UDP/TCP checksum offload DP cfg entry

Recently NAN UDP/TCP checksum offload INI is added
but corresponding DP cfg entry is missing.
Add NAN UDP/TCP checksum offload DP cfg entry.

Change-Id: I9c6549cbe4cb9e67a538c0743d99404b515e2006
CRs-Fixed: 2815904
Karthik Kantamneni 4 rokov pred
rodič
commit
8c1447c31d

+ 2 - 0
core/dp/ol/inc/ol_cfg.h

@@ -91,6 +91,8 @@ struct txrx_pdev_cfg_t {
 	struct wlan_ipa_uc_rsc_t ipa_uc_rsc;
 	bool ip_tcp_udp_checksum_offload;
 	bool p2p_ip_tcp_udp_checksum_offload;
+	/* IP, TCP and UDP checksum offload for NAN Mode*/
+	bool nan_tcp_udp_checksumoffload;
 	bool enable_rxthread;
 	bool ce_classify_enabled;
 #if defined(QCA_LL_TX_FLOW_CONTROL_V2) || defined(QCA_LL_PDEV_TX_FLOW_CONTROL)

+ 2 - 0
core/dp/txrx/ol_cfg.c

@@ -202,6 +202,8 @@ struct cdp_cfg *ol_pdev_cfg_attach(qdf_device_t osdev, void *pcfg_param)
 		cfg_param->ip_tcp_udp_checksum_offload;
 	cfg_ctx->p2p_ip_tcp_udp_checksum_offload =
 		cfg_param->p2p_ip_tcp_udp_checksum_offload;
+	cfg_ctx->nan_tcp_udp_checksumoffload =
+		cfg_param->nan_ip_tcp_udp_checksum_offload;
 	cfg_ctx->ce_classify_enabled = cfg_param->ce_classify_enabled;
 	cfg_ctx->gro_enable = cfg_param->gro_enable;
 	cfg_ctx->tso_enable = cfg_param->tso_enable;

+ 3 - 0
core/dp/txrx/ol_txrx.c

@@ -5859,6 +5859,9 @@ static uint32_t ol_txrx_get_cfg(struct cdp_soc_t *soc_hdl, enum cdp_dp_cfg cfg)
 	case cfg_dp_enable_p2p_ip_tcp_udp_checksum_offload:
 		value = cfg_ctx->p2p_ip_tcp_udp_checksum_offload;
 		break;
+	case cfg_dp_enable_nan_ip_tcp_udp_checksum_offload:
+		value = cfg_ctx->nan_tcp_udp_checksumoffload;
+		break;
 	case cfg_dp_tso_enable:
 		value = cfg_ctx->tso_enable;
 		break;