]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: document ieee80211_rx() context requirement
authorJohannes Berg <johannes@sipsolutions.net>
Sun, 11 Oct 2009 13:10:40 +0000 (15:10 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 12 Oct 2009 19:55:53 +0000 (15:55 -0400)
commit72328cbcdecccf8e37bd8b1358e9fcf8fbe3c8cb
treeb63f50f6086cacd9597490459f9febe289ba8c0d
parenta917245e52ae4c162b626963b919030f90dd3474
mac80211: document ieee80211_rx() context requirement

ieee80211_rx() must be called with softirqs disabled
since the networking stack requires this for netif_rx()
and some code in mac80211 can assume that it can not
be processing its own tasklet and this call at the same
time.

It may be possible to remove this requirement after a
careful audit of mac80211 and doing any needed locking
improvements in it along with disabling softirqs around
netif_rx(). An alternative might be to push all packet
processing to process context in mac80211, instead of
to the tasklet, and add other synchronisation.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/mac80211.h
net/mac80211/rx.c