]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: add NAPI support back
authorJohannes Berg <johannes.berg@intel.com>
Tue, 4 Feb 2014 19:51:09 +0000 (20:51 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 12 Feb 2014 20:37:27 +0000 (21:37 +0100)
commita8f4b614c19f78ee0c00d75b4f58cde2d879813d
tree4b1fd3bdb5c9568f127970ff8bc9630c5b9e6c80
parentbe095ec3b433f02e0a77b714a78e524b71c9bba4
mac80211: add NAPI support back

NAPI was originally added to mac80211 a long time ago (by John in
commit 120e9b5c7616 in July 2010), but then removed years later
(by Stanislaw in commit 57262d6f954d in February 2013). No driver
ever used it, so that was fine.

Now I'm adding support for NAPI to our driver, so add some code
to mac80211 again  to support NAPI. John was originally wrapping
some (but not nearly all NAPI-related functions), but that doesn't
scale very well with the number of functions that are there, some
of which are even only inlines. Thus, instead of doing that, let
the drivers manage the NAPI struct, except for napi_add() which is
needed so mac80211 knows how to call napi_gro_receive().

Also remove some no longer needed definitions that were left when
NAPI support was removed.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Reviewed-by: Eyal Shapira <eyal@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/ieee80211_i.h
net/mac80211/main.c
net/mac80211/rx.c