diff options
author | Yogesh Ashok Powar <yogeshp@marvell.com> | 2011-06-06 05:19:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-07 14:44:02 -0400 |
commit | fcf2176c87af77e5ee947edaf8e390bc67b729d8 (patch) | |
tree | 7a567a1e4bcce262bac3fe425eb4a852cd00c2c7 /drivers/net/wireless/mwifiex/main.h | |
parent | 485868266150022a139b74ba4daf0da9ad86c1c0 (diff) |
mwifiex: remove list traversal in mwifiex_num_pkts_in_txq
Instead of counting the number of packets in txq
for particular RA list before AMSDU creation,
maintain a counter which will keep track of the
same.
This will reduce some MIPS while generating AMSDU
traffic as we only have to check the counter instead
of traversing through skb list.
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/main.h')
-rw-r--r-- | drivers/net/wireless/mwifiex/main.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h index 89f98701b701..57b183af72d7 100644 --- a/drivers/net/wireless/mwifiex/main.h +++ b/drivers/net/wireless/mwifiex/main.h | |||
@@ -181,6 +181,7 @@ struct mwifiex_ra_list_tbl { | |||
181 | struct sk_buff_head skb_head; | 181 | struct sk_buff_head skb_head; |
182 | u8 ra[ETH_ALEN]; | 182 | u8 ra[ETH_ALEN]; |
183 | u32 total_pkts_size; | 183 | u32 total_pkts_size; |
184 | u32 total_pkts; | ||
184 | u32 is_11n_enabled; | 185 | u32 is_11n_enabled; |
185 | }; | 186 | }; |
186 | 187 | ||