]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 10 Jun 2015 17:42:30 +0000 (13:42 -0400)
commit6cf5b617a17408dcade9147f552ebe9695b1fa84
treef69f526574f4a510e21c5d3ad9666110969d3e0d
parent1007d14382998cf46e782daa83d04fb309de1e73
mac80211: don't use napi_gro_receive() outside NAPI context

[ Upstream commit 22d3a3c829fa9ecdb493d1f1f2838d543f8d86a3 ]

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.

Cc: stable@vger.kernel.org
Reported-by: Jean Trivelly <jean.trivelly@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
net/mac80211/ieee80211_i.h
net/mac80211/rx.c