wifi: mac80211: netdev compatible TX stop for iTXQ drivers
authorAlexander Wetzel <alexander@wetzel-home.de>
Tue, 20 Sep 2022 15:55:41 +0000 (17:55 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 7 Oct 2022 12:48:14 +0000 (14:48 +0200)
commitc95014e1d05b5acfd9e6fbe5d1f048b07c6902ff
tree319f295558b73bae1086f929086c60ed0efd6217
parent3bf9e30e493356912f9cb600f59b51133680639e
wifi: mac80211: netdev compatible TX stop for iTXQ drivers

Properly handle TX stop for internal queues (iTXQs) within mac80211.

mac80211 must not stop netdev queues when using mac80211 iTXQs.
For these drivers the netdev interface is created with IFF_NO_QUEUE.

While netdev still drops frames for IFF_NO_QUEUE interfaces when we stop
the netdev queues, it also prints a warning when this happens:
Assuming the mac80211 interface is called wlan0 we would get
"Virtual device wlan0 asks to queue packet!" when netdev has to drop a
frame.

This patch is keeping the harmless netdev queue starts for iTXQ drivers.

Signed-off-by: Alexander Wetzel <alexander@wetzel-home.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/iface.c
net/mac80211/tx.c