summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohit Khanna <mkhannaqca@codeaurora.org>2016-12-09 15:28:21 -0800
committerqcabuildsw <qcabuildsw@localhost>2016-12-16 20:57:27 -0800
commitd46d365f65b2af2a5143d2fb9ee6b5fd9d646219 (patch)
treeb79848e7c7cde670ac5ee9943bcdb690d3576c44
parent4bfff1af09af7632ca235fb8688d60b038ee670f (diff)
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
-rw-r--r--core/hdd/inc/wlan_hdd_main.h7
1 files changed, 6 insertions, 1 deletions
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 |