Răsfoiți Sursa

qcacld-3.0: Increase default tx_queue_len for WLAN netdevice

qcacld-2.0 to qcacld-3.0 propagation

An increase in tx_queue_len of netdev to 3000 is giving us better TCP
TX performance. Hence, increasing its value from its default (1000).
This gives us about 30 - 40 Mbps of boost.

Change-Id: I68f26ac0f4a040b0bbf10dd571dae8e5316f16b3
CRs-Fixed: 927673
Mohit Khanna 9 ani în urmă
părinte
comite
ee9e80f8d4

+ 4 - 0
core/hdd/inc/wlan_hdd_main.h

@@ -75,6 +75,10 @@
 #else
 #define NUM_TX_QUEUES 4
 #endif
+
+/** Length of the TX queue for the netdev */
+#define HDD_NETDEV_TX_QUEUE_LEN (3000)
+
 /** Bytes to reserve in the headroom */
 #define LIBRA_HW_NEEDED_HEADROOM   128
 /** Hdd Tx Time out value */

+ 1 - 0
core/hdd/src/wlan_hdd_hostapd.c

@@ -5935,6 +5935,7 @@ hdd_adapter_t *hdd_wlan_create_ap_dev(hdd_context_t *pHddCtx,
 
 		pWlanHostapdDev->watchdog_timeo = HDD_TX_TIMEOUT;
 		pWlanHostapdDev->mtu = HDD_DEFAULT_MTU;
+		pWlanHostapdDev->tx_queue_len = HDD_NETDEV_TX_QUEUE_LEN;
 
 		cdf_mem_copy(pWlanHostapdDev->dev_addr, (void *)macAddr,
 			     sizeof(tSirMacAddr));

+ 1 - 0
core/hdd/src/wlan_hdd_main.c

@@ -1812,6 +1812,7 @@ static hdd_adapter_t *hdd_alloc_station_adapter(hdd_context_t *hdd_ctx,
 
 		pWlanDev->destructor = free_netdev;
 		pWlanDev->ieee80211_ptr = &adapter->wdev;
+		pWlanDev->tx_queue_len = HDD_NETDEV_TX_QUEUE_LEN;
 		adapter->wdev.wiphy = hdd_ctx->wiphy;
 		adapter->wdev.netdev = pWlanDev;
 		/* set pWlanDev's parent to underlying device */