wifi: mac80211: consider aql_tx_pending when checking airtime deficit
authorFelix Fietkau <nbd@nbd.name>
Sat, 25 Jun 2022 21:24:07 +0000 (23:24 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 1 Jul 2022 08:51:48 +0000 (10:51 +0200)
commit9c1be3cde0046c7b06e69238a7af94039b3bed85
tree2b18d1135c4ee5662624a0a34c2ab4f5c8f663b8
parent445452d438e2f40355e2ed1aa9894e7094237dc9
wifi: mac80211: consider aql_tx_pending when checking airtime deficit

When queueing packets for a station, deficit only gets added once the packets
have been transmitted, which could be much later. During that time, a lot of
temporary unfairness could happen, which could lead to bursty behavior.
Fix this by subtracting the aql_tx_pending when checking the deficit in tx
scheduling.

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-3-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c