stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4.19 1/2] mac80211: mark TX-during-stop for TX in in_reconfig
@ 2021-12-17 20:35 Johannes Berg
  2021-12-17 20:35 ` [PATCH v4.19 2/2] mac80211: validate extended element ID is present Johannes Berg
  2021-12-17 20:42 ` [PATCH v4.19 1/2] mac80211: mark TX-during-stop for TX in in_reconfig Johannes Berg
  0 siblings, 2 replies; 5+ messages in thread
From: Johannes Berg @ 2021-12-17 20:35 UTC (permalink / raw)
  To: stable; +Cc: Johannes Berg

From: Johannes Berg <johannes.berg@intel.com>

Commit db7205af049d230e7e0abf61c1e74c1aab40f390 upstream.

Mark TXQs as having seen transmit while they were stopped if
we bail out of drv_wake_tx_queue() due to reconfig, so that
the queue wake after this will make them catch up. This is
particularly necessary for when TXQs are used for management
packets since those TXQs won't see a lot of traffic that'd
make them catch up later.

Cc: stable@vger.kernel.org
Fixes: 4856bfd23098 ("mac80211: do not call driver wake_tx_queue op during reconfig")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211129152938.4573a221c0e1.I0d1d5daea3089be3fc0dccc92991b0f8c5677f0c@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
I'm not sure why you say it doesn't apply - it did for me?
---
 net/mac80211/driver-ops.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h
index 2123f6e90fc0..8f71c271653f 100644
--- a/net/mac80211/driver-ops.h
+++ b/net/mac80211/driver-ops.h
@@ -1166,8 +1166,11 @@ static inline void drv_wake_tx_queue(struct ieee80211_local *local,
 {
 	struct ieee80211_sub_if_data *sdata = vif_to_sdata(txq->txq.vif);
 
-	if (local->in_reconfig)
+	/* In reconfig don't transmit now, but mark for waking later */
+	if (local->in_reconfig) {
+		set_bit(IEEE80211_TXQ_STOP_NETIF_TX, &txq->flags);
 		return;
+	}
 
 	if (!check_sdata_in_driver(sdata))
 		return;
-- 
2.33.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-12-18  8:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-17 20:35 [PATCH v4.19 1/2] mac80211: mark TX-during-stop for TX in in_reconfig Johannes Berg
2021-12-17 20:35 ` [PATCH v4.19 2/2] mac80211: validate extended element ID is present Johannes Berg
2021-12-17 20:42 ` [PATCH v4.19 1/2] mac80211: mark TX-during-stop for TX in in_reconfig Johannes Berg
2021-12-17 23:36   ` Greg KH
2021-12-18  8:56     ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).