summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/brcm80211/brcmfmac/commonring.h
diff options
context:
space:
mode:
authorHante Meuleman <meuleman@broadcom.com>2015-01-25 20:31:30 +0100
committerKalle Valo <kvalo@codeaurora.org>2015-01-29 09:58:49 +0200
commit5ef1e604194ee629c5d9fd6b9a4d3c424cfd2a84 (patch)
treeb3f9dc16ca2e8793eb4462b1469744187ffe25da /drivers/net/wireless/brcm80211/brcmfmac/commonring.h
parent382afc3d055b9ac4d175a4b5b9352128fc091aa3 (diff)
downloadlwn-5ef1e604194ee629c5d9fd6b9a4d3c424cfd2a84.tar.gz
lwn-5ef1e604194ee629c5d9fd6b9a4d3c424cfd2a84.zip
brcmfmac: Relax scheduling of msgbuf worker on high throughput.
On every tx the flow worker is triggered. When running high throughput data this causes an excessive amount of times the worker gets activated. This patch starts scheduling the worker more relaxed once outstanding tx has reached a certain depth. Reviewed-by: Arend Van Spriel <arend@broadcom.com> Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Signed-off-by: Hante Meuleman <meuleman@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmfmac/commonring.h')
-rw-r--r--drivers/net/wireless/brcm80211/brcmfmac/commonring.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/commonring.h b/drivers/net/wireless/brcm80211/brcmfmac/commonring.h
index 002336e35764..3d404016a92e 100644
--- a/drivers/net/wireless/brcm80211/brcmfmac/commonring.h
+++ b/drivers/net/wireless/brcm80211/brcmfmac/commonring.h
@@ -37,6 +37,8 @@ struct brcmf_commonring {
unsigned long flags;
bool inited;
bool was_full;
+
+ atomic_t outstanding_tx;
};