summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiger Yu <tfyu@codeaurora.org>2018-10-11 15:52:01 +0800
committernshrivas <nshrivas@codeaurora.org>2018-10-17 01:54:19 -0700
commit44bae7965d4a8986489af449607e4bd16e0dfde8 (patch)
tree78fd9080eb25e3d3d1836d9cf15f9e3d74ff870a
parentb1f68b3dc24818e713e4ff18b752af9731fb903b (diff)
qcacld-3.0: Enable the scatter-gather feature
Enable the scatter-gather feature for wlan interface, if the wlan interface is binding to the bridge, which might enable SG & TSO feature for the bridge and improve the TCP TX throughput much better. Change-Id: I26101756266878f9f41c5dc2d0b5dad189b44ee1 CRs-Fixed: 2246512
-rw-r--r--core/hdd/inc/wlan_hdd_main.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h
index 39e8509db566..935ecf703c60 100644
--- a/core/hdd/inc/wlan_hdd_main.h
+++ b/core/hdd/inc/wlan_hdd_main.h
@@ -2728,7 +2728,11 @@ static inline void hdd_set_tso_flags(hdd_context_t *hdd_ctx,
}
#else
static inline void hdd_set_tso_flags(hdd_context_t *hdd_ctx,
- struct net_device *wlan_dev){}
+ struct net_device *wlan_dev)
+{
+ hdd_debug("SG Enabled");
+ wlan_dev->features |= NETIF_F_SG;
+}
#endif /* FEATURE_TSO */
#if defined(FEATURE_WLAN_MCC_TO_SCC_SWITCH) || \