]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mac80211: optimize ieee80211_rx_status struct layout
authorJohannes Berg <johannes.berg@intel.com>
Thu, 5 Jul 2012 11:14:18 +0000 (13:14 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 12 Jul 2012 10:10:45 +0000 (12:10 +0200)
We waste a lot of space in this struct because it uses
int values where smaller ones would be sufficient. The
upcoming A-MPDU information needs some space, optimize
the struct now.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h

index c5dbb46debb0a1362a686603b4c7c028961c4dde..7300cb51dd5fd6ac9e9e39a858ab7fde22595517 100644 (file)
@@ -709,13 +709,13 @@ enum mac80211_rx_flags {
  */
 struct ieee80211_rx_status {
        u64 mactime;
-       enum ieee80211_band band;
-       int freq;
-       int signal;
-       int antenna;
-       int rate_idx;
-       int flag;
-       unsigned int rx_flags;
+       u16 flag;
+       u16 freq;
+       u8 rate_idx;
+       u8 rx_flags;
+       u8 band;
+       u8 antenna;
+       s8 signal;
 };
 
 /**