]> git.baikalelectronics.ru Git - kernel.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)
commit7309d6d1f54febc1eddd3f452beb2d582c151906
treed8d1927308f0e6e6452412144313e4b58c43da71
parent56bf261e99b9fe609e48ce9cc7e2e958bd1cce5e
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