[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1595351666-28193-7-git-send-email-pillair@codeaurora.org>
Date: Tue, 21 Jul 2020 22:44:25 +0530
From: Rakesh Pillai <pillair@...eaurora.org>
To: ath10k@...ts.infradead.org
Cc: linux-wireless@...r.kernel.org, linux-kernel@...r.kernel.org,
kvalo@...eaurora.org, johannes@...solutions.net,
davem@...emloft.net, kuba@...nel.org, netdev@...r.kernel.org,
dianders@...omium.org, evgreen@...omium.org,
Rakesh Pillai <pillair@...eaurora.org>
Subject: [RFC 6/7] ath10k: Add deliver to stack from thread context
When the receive packets are submitted to the stack
from a thread context, the NAPI handle should be passed
as NULL to the function ieee80211_rx_napi. This will
make sure that the packets are submitted to stack via
non-napi method
Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.3.1-01040-QCAHLSWMTPLZ-1
Signed-off-by: Rakesh Pillai <pillair@...eaurora.org>
---
drivers/net/wireless/ath/ath10k/htt_rx.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c
index becbd56..85c169c 100644
--- a/drivers/net/wireless/ath/ath10k/htt_rx.c
+++ b/drivers/net/wireless/ath/ath10k/htt_rx.c
@@ -1321,7 +1321,10 @@ static void ath10k_process_rx(struct ath10k *ar, struct sk_buff *skb)
trace_ath10k_rx_hdr(ar, skb->data, skb->len);
trace_ath10k_rx_payload(ar, skb->data, skb->len);
- ieee80211_rx_napi(ar->hw, NULL, skb, &ar->napi);
+ if (in_serving_softirq())
+ ieee80211_rx_napi(ar->hw, NULL, skb, &ar->napi);
+ else
+ ieee80211_rx_napi(ar->hw, NULL, skb, NULL);
}
static int ath10k_htt_rx_nwifi_hdrlen(struct ath10k *ar,
--
2.7.4
Powered by blists - more mailing lists