Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8260e333 authored by Govind Singh's avatar Govind Singh Committed by Gerrit - the friendly Code Review server
Browse files

ath10k: Fix TCP TX throttling issue



TCP TX throttling logic is changed a little after
3.19-rc1 kernel, the TCP sending limit will be smaller,
which will throttle the TCP packets to the host driver.
The TCP UP LINK throughput will drop heavily. In order to
fix this issue, need to orphan the socket buffer asap, which
will call skb's destructor to notify the TCP stack that the
SKB buffer is unowned. And then the TCP stack will pump more
packets to host driver.

The TX packets might be dropped for UDP case in the iperf
testing. So need to be protected by follow control

Change-Id: I1c77313fbdb579e708d4a5a6bcd063c7c34a6d39
Signed-off-by: default avatarGovind Singh <govinds@codeaurora.org>
parent bba3dcc4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3506,6 +3506,7 @@ static int ath10k_mac_tx(struct ath10k *ar,
	struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
	int ret;

	skb_orphan(skb);
	/* We should disable CCK RATE due to P2P */
	if (info->flags & IEEE80211_TX_CTL_NO_CCK_RATE)
		ath10k_dbg(ar, ATH10K_DBG_MAC, "IEEE80211_TX_CTL_NO_CCK_RATE\n");