]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: optimize tx status processing
authorFelix Fietkau <nbd@openwrt.org>
Thu, 11 Mar 2010 15:28:24 +0000 (16:28 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Mar 2010 19:31:59 +0000 (15:31 -0400)
commitd496fc933f3318b9610d8b57911ce9e48109c727
tree0071ca8d20a17233cced7448f46b4888d6555b51
parenta9f200e5cbbd436e385151b5d61186ac8e159a1c
mac80211: optimize tx status processing

When a cooked monitor interface is active, ieee80211_tx_status()
generates a radiotap header for every single frame, even if it wasn't
injected and thus won't be sent to a monitor interface.
This patch reduces cpu utilization by moving the cooked monitor check a
bit earlier, before it generates the rtap header.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/status.c