]> asedeno.scripts.mit.edu Git - linux.git/commit
mac80211: add tx dequeue function for process context
authorErik Stromdahl <erik.stromdahl@gmail.com>
Mon, 17 Jun 2019 20:01:39 +0000 (22:01 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Jul 2019 11:23:19 +0000 (13:23 +0200)
commitfb0e76abe34bd67756dbdf4d5982b7dc54afa1d8
treed8d1927308f0e6e6452412144313e4b58c43da71
parenta11e2f85481c2f08b55c06467445602a2330ee5b
mac80211: add tx dequeue function for process context

Since ieee80211_tx_dequeue() must not be called with softirqs enabled
(i.e. from process context without proper disable of bottom halves),
we add a wrapper that disables bottom halves before calling
ieee80211_tx_dequeue()

The new function is named ieee80211_tx_dequeue_ni() just as all other
from-process-context versions found in mac80211.

The documentation of ieee80211_tx_dequeue() is also updated so it
mentions that the function should not be called from process context.

Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
Link: https://lore.kernel.org/r/20190617200140.6189-1-erik.stromdahl@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/tx.c