From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hnOgK-0004O9-31 for ath11k@lists.infradead.org; Tue, 16 Jul 2019 14:43:53 +0000 MIME-Version: 1.0 Date: Tue, 16 Jul 2019 20:13:51 +0530 From: Sriram R Subject: Re: [PATCH] ath11k: Add probe response throttling logic In-Reply-To: <87muhe89ex.fsf@kamboji.qca.qualcomm.com> References: <1561595753-11351-1-git-send-email-srirrama@codeaurora.org> <87muhe89ex.fsf@kamboji.qca.qualcomm.com> Message-ID: <4d57bd235631cb7952cfaec9c6bdedb4@codeaurora.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "ath11k" Errors-To: ath11k-bounces+kvalo=adurom.com@lists.infradead.org To: Kalle Valo Cc: ath11k@lists.infradead.org On 2019-07-16 17:43, Kalle Valo wrote: > Sriram R writes: > >> Drop probe response packets when the pending management tx >> count has reached a certain threshold, so as to prioritize >> other mgmt packets like auth and assoc to be sent on time >> for establishing successful connections. >> This might be required in dense networks, multi-vap scenarios >> or due to emulated probe requests (DoS attack), >> which could lead to association failures due to failure to >> send auth/assoc packets as high probe response traffic occupies the >> limited target mgmt transmit queue. >> Currently the threshold is set to 3/4th of the target management >> tx queue. >> >> Signed-off-by: Sriram R > > [...] > >> --- a/drivers/net/wireless/ath/ath11k/wmi.c >> +++ b/drivers/net/wireless/ath/ath11k/wmi.c >> @@ -3366,6 +3366,9 @@ static int wmi_process_mgmt_tx_comp(struct >> ath11k *ar, u32 desc_id, >> >> ieee80211_tx_status_irqsafe(ar->hw, msdu); >> >> + WARN_ON(atomic_read(&ar->num_pending_mgmt_tx) == 0); > > In the pending branch I changed this to WARN_ON_ONCE() so that we don't > excessively spam the logs: > > https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending-ath11k&id=02d5ce6ef5feff4bbc80afd800586bd15879b714 Fine Kalle. Thanks for making this change. Regards, Sriram.R _______________________________________________ ath11k mailing list ath11k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath11k