]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: minstrel: reduce minstrel_mcs_groups size
authorFelix Fietkau <nbd@nbd.name>
Sat, 6 Oct 2018 17:35:02 +0000 (19:35 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 11 Oct 2018 14:01:02 +0000 (16:01 +0200)
commitc7981b3dbcee9874ec5d1e49523ff9facbff8395
tree12a1008f6084ed86f5e944805b5b578d77874b8b
parentc87b8868c365c44d0498df9d116298526221a0dc
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>
net/mac80211/rc80211_minstrel_ht.c
net/mac80211/rc80211_minstrel_ht.h
net/mac80211/rc80211_minstrel_ht_debugfs.c