mac802154: rx: document ieee802154_rx() context requirement

This patch is similar like d20ef63d32
("mac80211: document ieee80211_rx() context requirement"). The
netif_receive_skb call requires with softirqs disabled. This patch
adds a warning if softirqs are pending while calling ieee802154_rx.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
Alexander Aring 2014-10-27 17:13:31 +01:00 committed by Marcel Holtmann
parent c5c47e67bc
commit c730c90316
1 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,8 @@ mac802154_subif_rx(struct ieee802154_hw *hw, struct sk_buff *skb)
void ieee802154_rx(struct ieee802154_hw *hw, struct sk_buff *skb)
{
WARN_ON_ONCE(softirq_count() == 0);
mac802154_subif_rx(hw, skb);
}
EXPORT_SYMBOL(ieee802154_rx);