wifi: mac80211: add a per-PHY AQL limit to improve fairness
authorFelix Fietkau <nbd@nbd.name>
Sat, 25 Jun 2022 21:24:09 +0000 (23:24 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 1 Jul 2022 08:51:48 +0000 (10:51 +0200)
commit8e4bac0671054ba1ad2e3d41aa568ac55f51affd
tree3f25767abf196fc9862f9549705959da38acf162
parent8ccc07028cb7aaa6ad313f24a9442c7796416e19
wifi: mac80211: add a per-PHY AQL limit to improve fairness

In order to maintain fairness, the amount of queueing needs to be limited
beyond the simple per-station AQL budget, otherwise the driver can simply
repeatedly do scheduling rounds until all queues that have not used their
AQL budget become eligble.

To be conservative, use the high AQL limit for the first txq and add half
of the low AQL for each subsequent queue.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Link: https://lore.kernel.org/r/20220625212411.36675-5-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/main.c
net/mac80211/sta_info.c
net/mac80211/tx.c