]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2f3014a2449bfefed14e979072237b424f6cf2e9
tree319f295558b73bae1086f929086c60ed0efd6217
parent51884ef2ec48a1f8b40eb2e87e40d7ab411503f8
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