]> 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)
commit99dd5f32879ca88a9f35a86fd3691981406f768c
tree319f295558b73bae1086f929086c60ed0efd6217
parentad739fbc36c816c2f00cca24408bfa8f4085d718
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