]> git.baikalelectronics.ru Git - kernel.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)
commitbfcaf65a9ab0bff6bc6b88d36093d5160d22caf0
tree7a567a1e4bcce262bac3fe425eb4a852cd00c2c7
parent53b11add2c4c9a578496c597e1645946cc584c4c
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