]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: use split rx buffers to get rid of order-1 skb allocations
authorFelix Fietkau <nbd@openwrt.org>
Wed, 26 Jan 2011 17:23:27 +0000 (18:23 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Jan 2011 20:44:28 +0000 (15:44 -0500)
commitabfc7cebadb7b11ec5a0a19b4fd553b36737c169
tree593a9acbca2a6246f4244855bc7d4498b6dfa5bd
parent5ddb4e40666f4964c9b0c720f76927ad7ec7a10c
ath9k: use split rx buffers to get rid of order-1 skb allocations

With this change, less CPU time is spent trying to look for consecutive
pages for rx skbs. This also reduces the socket memory required for IP/UDP
reassembly.
Only two buffers per frame are supported. Frames spanning more buffers
will be dropped, but the buffer size is enough to handle the required
AMSDU size.

Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/main.c
drivers/net/wireless/ath/ath9k/recv.c