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)
commit8d819a92cc7fef4294dd11faa60050fd3c5460e0
treee03e57c24526321164eae39d8e89dc43c7228b96
parent79f241b41b5f581c6be66785ab8b9c8e3b1651c7
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