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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user