]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: reduce the amount of unnecessary traffic on cooked monitor interfaces
authorFelix Fietkau <nbd@openwrt.org>
Sat, 14 Nov 2009 02:29:38 +0000 (03:29 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 18 Nov 2009 22:09:10 +0000 (17:09 -0500)
commit0b09de1135f6e434fbfe98de61d6f8c6bcf0b08c
tree99f38c9d8e1ec97c0713325e3628d3836839eb8c
parent92a88a8052e17305edad84a747bfe6326d222086
mac80211: reduce the amount of unnecessary traffic on cooked monitor interfaces

In order to handle association and authentication in AP mode,
hostapd needs access to the tx status info of its own frames
through a cooked monitor interface. Without this patch the
cooked monitor interfaces also passed on tx status information
for packets from other virtual interfaces. This creates a
significant performance issue on embedded system. Hostapd
tries to work around this by installing a Linux Socket Filter
that only captures the frames it's interested in, however
data duplication and socket filter matching still uses up
enough CPU cycles to be very noticeable on small systems.
This patch ensures that tx status information of non-injected
frames does not make it to cooked monitor interfaces.

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