]> git.karo-electronics.de Git - linux-beck.git/commit
mwifiex: remove list traversal in mwifiex_num_pkts_in_txq
authorYogesh Ashok Powar <yogeshp@marvell.com>
Mon, 6 Jun 2011 09:19:32 +0000 (14:49 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 7 Jun 2011 18:44:02 +0000 (14:44 -0400)
commitfcf2176c87af77e5ee947edaf8e390bc67b729d8
tree7a567a1e4bcce262bac3fe425eb4a852cd00c2c7
parent485868266150022a139b74ba4daf0da9ad86c1c0
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>
drivers/net/wireless/mwifiex/11n_aggr.c
drivers/net/wireless/mwifiex/main.h
drivers/net/wireless/mwifiex/wmm.c