qcacmn: Add NAN TX checksum offload INI entry

Currently there is a single INI item tcp_udp_checksumoffload to enable
or disable this feature for all the adapters. In some cases, we want to
be able to enable this feature selectively for NAN mode.

Add nan_tcp_udp_checksumoffload ini item to enable or disable checksum
offload feature specifically for NAN mode. If
nan_tcp_udp_checksumoffload is 'true' and tcp_udp_checksumoffload is
false, hardware checksum offload will be enabled only for the NAN
adapter and not for other adapters.

CRs-Fixed: 2693638
Change-Id: I6e255ce68ddc7b01ebdefe4e5e8d2c985388fefe
This commit is contained in:
Mohit Khanna
2020-05-21 16:54:56 -07:00
committed by nshrivas
父節點 d0b3820279
當前提交 97200aab9c
共有 9 個文件被更改,包括 86 次插入4 次删除

查看文件

@@ -2172,7 +2172,8 @@ struct cdp_rx_indication_msdu {
* @lro_enable: Enable/Disable LRO
* @gro_enable: Enable/Disable GRO
* @flow_steering_enable: Enable/Disable Rx Hash based flow steering
* @tcp_Udp_ChecksumOffload: Enable/Disable tcp-Udp checksum Offload
* @nan_tcp_udp_checksumoffload: Enable/Disable TCP/UDP Checksum Offload for NAN
* @tcp_udp_checksumoffload: Enable/Disable TCP/UDP Checksum Offload
* @napi_enable: Enable/Disable Napi
* @ipa_enable: Flag indicating if IPA is enabled or not
* @tx_flow_stop_queue_threshold: Value to Pause tx queues
@@ -2187,6 +2188,7 @@ struct cdp_config_params {
unsigned int lro_enable:1;
unsigned int gro_enable:1;
unsigned int flow_steering_enable:1;
unsigned int nan_tcp_udp_checksumoffload:1;
unsigned int tcp_udp_checksumoffload:1;
unsigned int napi_enable:1;
unsigned int ipa_enable:1;
@@ -2246,6 +2248,9 @@ struct cdp_monitor_filter {
*/
enum cdp_dp_cfg {
cfg_dp_enable_data_stall,
/* checksum offload for NAN interface */
cfg_dp_enable_nan_ip_tcp_udp_checksum_offload,
/* generic checksum offload for other interfaces */
cfg_dp_enable_ip_tcp_udp_checksum_offload,
cfg_dp_tso_enable,
cfg_dp_lro_enable,