OSDN Git Service

mac80211: don't use napi_gro_receive() outside NAPI context
authorJohannes Berg <johannes.berg@intel.com>
Tue, 19 May 2015 13:40:21 +0000 (15:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Jun 2015 15:21:03 +0000 (08:21 -0700)
commit9e1182c1cf53b0b56ce19e06f0171f607c58f2d3
treea357bdbbfa667315e1e4f47dab7b7bd22d35f1f1
parent510cfd9829c09b00beb6bcf4b4127e85b3008a5a
mac80211: don't use napi_gro_receive() outside NAPI context

commit 22d3a3c829fa9ecdb493d1f1f2838d543f8d86a3 upstream.

No matter how the driver manages its NAPI context, there's no way
sending frames to it from a timer can be correct, since it would
corrupt the internal GRO lists.

To avoid that, always use the non-NAPI path when releasing frames
from the timer.

Reported-by: Jean Trivelly <jean.trivelly@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/ieee80211_i.h
net/mac80211/rx.c