diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-10-06 19:35:02 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-10-11 16:01:02 +0200 |
commit | 202df504d7dea489ce74a913d4b529531bdff312 (patch) | |
tree | 12a1008f6084ed86f5e944805b5b578d77874b8b /net/mac80211/rc80211_minstrel_ht.h | |
parent | mac80211: minstrel: merge with minstrel_ht, always enable VHT support (diff) | |
download | linux-202df504d7dea489ce74a913d4b529531bdff312.tar.xz linux-202df504d7dea489ce74a913d4b529531bdff312.zip |
mac80211: minstrel: reduce minstrel_mcs_groups size
By storing a shift value for all duration values of a group, we can
reduce precision by a neglegible amount to make it fit into a u16 value.
This improves cache footprint and reduces size:
Before:
text data bss dec hex filename
10024 116 0 10140 279c rc80211_minstrel_ht.o
After:
text data bss dec hex filename
9368 116 0 9484 250c rc80211_minstrel_ht.o
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/rc80211_minstrel_ht.h')
-rw-r--r-- | net/mac80211/rc80211_minstrel_ht.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/mac80211/rc80211_minstrel_ht.h b/net/mac80211/rc80211_minstrel_ht.h index ad17df10a947..26b7a3244b47 100644 --- a/net/mac80211/rc80211_minstrel_ht.h +++ b/net/mac80211/rc80211_minstrel_ht.h @@ -33,9 +33,10 @@ #define MCS_GROUP_RATES 10 struct mcs_group { - u32 flags; - unsigned int streams; - unsigned int duration[MCS_GROUP_RATES]; + u16 flags; + u8 streams; + u8 shift; + u16 duration[MCS_GROUP_RATES]; }; extern const struct mcs_group minstrel_mcs_groups[]; |