aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/336-mac80211-minstrel_ht-make-att_hist-and-succ_hist-u32.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-12-15 11:48:12 +0100
committerFelix Fietkau <nbd@nbd.name>2016-12-19 13:51:21 +0100
commit00bc7f0357d082e73699fb561776088e48e53101 (patch)
tree92396001e5678f24e207464bd83fe63e8b5caaca /package/kernel/mac80211/patches/336-mac80211-minstrel_ht-make-att_hist-and-succ_hist-u32.patch
parent6f77b8d510e2308f85344cd46de96dadc07a6cb9 (diff)
downloadupstream-00bc7f0357d082e73699fb561776088e48e53101.tar.gz
upstream-00bc7f0357d082e73699fb561776088e48e53101.tar.bz2
upstream-00bc7f0357d082e73699fb561776088e48e53101.zip
mac80211: merge a number of minstrel/minstrel_ht performance and memory usage improvements
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel/mac80211/patches/336-mac80211-minstrel_ht-make-att_hist-and-succ_hist-u32.patch')
-rw-r--r--package/kernel/mac80211/patches/336-mac80211-minstrel_ht-make-att_hist-and-succ_hist-u32.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/336-mac80211-minstrel_ht-make-att_hist-and-succ_hist-u32.patch b/package/kernel/mac80211/patches/336-mac80211-minstrel_ht-make-att_hist-and-succ_hist-u32.patch
new file mode 100644
index 0000000000..40d03001c6
--- /dev/null
+++ b/package/kernel/mac80211/patches/336-mac80211-minstrel_ht-make-att_hist-and-succ_hist-u32.patch
@@ -0,0 +1,22 @@
+From: Felix Fietkau <nbd@nbd.name>
+Date: Wed, 14 Dec 2016 20:09:14 +0100
+Subject: [PATCH] mac80211: minstrel_ht: make att_hist and succ_hist u32
+ instead of u64
+
+They are only used for debugging purposes and take a very long time to
+overflow. Visibly reduces the size of the per-sta rate control data.
+
+Signed-off-by: Felix Fietkau <nbd@nbd.name>
+---
+
+--- a/net/mac80211/rc80211_minstrel.h
++++ b/net/mac80211/rc80211_minstrel.h
+@@ -59,7 +59,7 @@ struct minstrel_rate_stats {
+ u16 success, last_success;
+
+ /* total attempts/success counters */
+- u64 att_hist, succ_hist;
++ u32 att_hist, succ_hist;
+
+ /* statistis of packet delivery probability
+ * cur_prob - current prob within last update intervall