]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit202df504d7dea489ce74a913d4b529531bdff312
tree12a1008f6084ed86f5e944805b5b578d77874b8b
parentb1c4f68337fa6b7c09154bb2bf2ec6f0d30ab652
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