]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: minstrel: reduce size of struct minstrel_rate_stats
authorFelix Fietkau <nbd@openwrt.org>
Wed, 17 Dec 2014 12:38:34 +0000 (13:38 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 19 Dec 2014 20:34:22 +0000 (21:34 +0100)
commit470cd80e5b573e473f69677f107a79376693d7ed
treee03e57c24526321164eae39d8e89dc43c7228b96
parent38b4827d466ad68e454a0a941e4e17595578ad6d
mac80211: minstrel: reduce size of struct minstrel_rate_stats

On minstrel_ht, the size of the per-sta struct is almost 18k, making it
an order-3 allocation.
A few fields inside the per-rate statistics are bigger than they need to
be. This patch reduces the size enough to cut down the per-sta struct to
about 13k (order-2 allocation).

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel.c
net/mac80211/rc80211_minstrel.h