aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/341-mac80211-minstrel-make-prob_ewma-u16-instead-of-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/341-mac80211-minstrel-make-prob_ewma-u16-instead-of-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/341-mac80211-minstrel-make-prob_ewma-u16-instead-of-u32.patch')
-rw-r--r--package/kernel/mac80211/patches/341-mac80211-minstrel-make-prob_ewma-u16-instead-of-u32.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/341-mac80211-minstrel-make-prob_ewma-u16-instead-of-u32.patch b/package/kernel/mac80211/patches/341-mac80211-minstrel-make-prob_ewma-u16-instead-of-u32.patch
new file mode 100644
index 0000000000..570cd19ee4
--- /dev/null
+++ b/package/kernel/mac80211/patches/341-mac80211-minstrel-make-prob_ewma-u16-instead-of-u32.patch
@@ -0,0 +1,20 @@
+From: Felix Fietkau <nbd@nbd.name>
+Date: Wed, 14 Dec 2016 20:19:56 +0100
+Subject: [PATCH] mac80211: minstrel: make prob_ewma u16 instead of u32
+
+Saves about 1.2 KiB memory per station
+
+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 {
+ /* statistis of packet delivery probability
+ * prob_ewma - exponential weighted moving average of prob
+ * prob_ewmsd - exp. weighted moving standard deviation of prob */
+- unsigned int prob_ewma;
++ u16 prob_ewma;
+ u16 prob_ewmv;
+
+ /* maximum retry counts */