From d46d365f65b2af2a5143d2fb9ee6b5fd9d646219 Mon Sep 17 00:00:00 2001 From: Mohit Khanna Date: Fri, 9 Dec 2016 15:28:21 -0800 Subject: qcacld-3.0: enable TSO only if IP/UDP/TCP checksum is enabled Enable TSO only if both gEnableIpTcpUdpChecksumOffload and TSOEnable=1 flags are enabled in the ini file. Change-Id: I8004c381be06fd85883e9537038d32622a7e39dc CRs-Fixed: 1099742 --- core/hdd/inc/wlan_hdd_main.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index 2f1f29a419b0..3d70c32b0cb0 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -1853,7 +1853,12 @@ static inline int hdd_process_pktlog_command(hdd_context_t *hdd_ctx, static inline void hdd_set_tso_flags(hdd_context_t *hdd_ctx, struct net_device *wlan_dev) { - if (hdd_ctx->config->tso_enable) { + if (hdd_ctx->config->tso_enable && + hdd_ctx->config->enable_ip_tcp_udp_checksum_offload) { + /* + * We want to enable TSO only if IP/UDP/TCP TX checksum flag is + * enabled. + */ hdd_info("TSO Enabled"); wlan_dev->features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | -- cgit v1.2.3