summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorService qcabuildsw <qcabuildsw@localhost>2016-12-19 09:57:33 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-12-19 09:57:33 -0800
commitfcb5d8a4eca82645f1927e49d88d21334c10bc1a (patch)
tree8b782bf04fed0a60401d5bb756a4c67f84788075
parent98a5375af5bd409b18f131a29e2b721631b24520 (diff)
parentd46d365f65b2af2a5143d2fb9ee6b5fd9d646219 (diff)
Merge "qcacld-3.0: enable TSO only if IP/UDP/TCP checksum is enabled" into wlan-cld3.driver.lnx.1.1-dev
-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 |