diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-03-26 18:21:47 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-27 16:08:07 -0400 |
commit | 056cdd599d004e36de64c925b8a13f6676451360 (patch) | |
tree | b7487ed554d7565ea69fd282f56e97c72565f414 /net/mac80211/sta_info.h | |
parent | 8dd62822ddbf6a9314e9b92a3816c04490c91293 (diff) |
mac80211: reorder fields to make some structures smaller
This patch reorders some fields in various structures to have
less padding within the structures, making them smaller. It
doesn't yet make any type adjustments, but often size_t is used
for example for IE lengths which is total overkill since size_t
will be 8 bytes long on 64-bit yet the length can at most fill
a u8.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/sta_info.h')
-rw-r--r-- | net/mac80211/sta_info.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h index af5a791e21f3..5e39a4164b9b 100644 --- a/net/mac80211/sta_info.h +++ b/net/mac80211/sta_info.h | |||
@@ -81,20 +81,20 @@ struct tid_ampdu_tx { | |||
81 | /** | 81 | /** |
82 | * struct tid_ampdu_rx - TID aggregation information (Rx). | 82 | * struct tid_ampdu_rx - TID aggregation information (Rx). |
83 | * | 83 | * |
84 | * @head_seq_num: head sequence number in reordering buffer. | ||
85 | * @stored_mpdu_num: number of MPDUs in reordering buffer | ||
86 | * @reorder_buf: buffer to reorder incoming aggregated MPDUs | 84 | * @reorder_buf: buffer to reorder incoming aggregated MPDUs |
87 | * @session_timer: check if peer keeps Tx-ing on the TID (by timeout value) | 85 | * @session_timer: check if peer keeps Tx-ing on the TID (by timeout value) |
86 | * @head_seq_num: head sequence number in reordering buffer. | ||
87 | * @stored_mpdu_num: number of MPDUs in reordering buffer | ||
88 | * @ssn: Starting Sequence Number expected to be aggregated. | 88 | * @ssn: Starting Sequence Number expected to be aggregated. |
89 | * @buf_size: buffer size for incoming A-MPDUs | 89 | * @buf_size: buffer size for incoming A-MPDUs |
90 | * @timeout: reset timer value. | 90 | * @timeout: reset timer value. |
91 | * @dialog_token: dialog token for aggregation session | 91 | * @dialog_token: dialog token for aggregation session |
92 | */ | 92 | */ |
93 | struct tid_ampdu_rx { | 93 | struct tid_ampdu_rx { |
94 | u16 head_seq_num; | ||
95 | u16 stored_mpdu_num; | ||
96 | struct sk_buff **reorder_buf; | 94 | struct sk_buff **reorder_buf; |
97 | struct timer_list session_timer; | 95 | struct timer_list session_timer; |
96 | u16 head_seq_num; | ||
97 | u16 stored_mpdu_num; | ||
98 | u16 ssn; | 98 | u16 ssn; |
99 | u16 buf_size; | 99 | u16 buf_size; |
100 | u16 timeout; | 100 | u16 timeout; |