]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: support use of NAPI for bottom-half processing
authorJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jul 2010 20:14:13 +0000 (16:14 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 Aug 2010 18:39:46 +0000 (14:39 -0400)
commit120e9b5c7616126c7841693549c7c8fc776031af
tree274e8374c2b097058a5152da3bf6cf62d99dbad7
parentc541084d5c05cb684d6e7c40d1cc2bddf1b75055
mac80211: support use of NAPI for bottom-half processing

This patch implement basic infrastructure to support use of NAPI by
mac80211-based hardware drivers.

Because mac80211 devices can support multiple netdevs, a dummy netdev
is used for interfacing with the NAPI code in the core of the network
stack.  That structure is hidden from the hardware drivers, but the
actual napi_struct is exposed in the ieee80211_hw structure so that the
poll routines in drivers can retrieve that structure.  Hardware drivers
can also specify their own weight value for NAPI polling.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/mac80211.h
net/mac80211/ieee80211_i.h
net/mac80211/iface.c
net/mac80211/main.c