mac80211: improve AQL tx airtime estimation
authorFelix Fietkau <nbd@nbd.name>
Fri, 24 Jul 2020 18:28:16 +0000 (20:28 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 31 Jul 2020 07:24:24 +0000 (09:24 +0200)
commit3ff901cb5df1d2102e924d75d91347a2a3070fa5
tree070e3aea13a392b0a96451c20ec86cc67b8df209
parent1303a51c24100b3b1915d6f9072fe5ae5bb4c5f6
mac80211: improve AQL tx airtime estimation

AQL does not take into account that most HT/VHT/HE traffic is A-MPDU aggregated.
Because of that, the per-packet airtime overhead is vastly overestimated.
Improve it by assuming an average aggregation length of 16 for non-legacy
traffic if not using the VO AC queue.
This should improve performance with high data rates, especially with multiple
stations

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20200724182816.18678-1-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/airtime.c
net/mac80211/ieee80211_i.h
net/mac80211/tx.c