Commit c730c903 authored by Alexander Aring's avatar Alexander Aring Committed by Marcel Holtmann

mac802154: rx: document ieee802154_rx() context requirement

This patch is similar like d20ef63d
("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: default avatarAlexander Aring <alex.aring@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent c5c47e67
...@@ -61,6 +61,8 @@ mac802154_subif_rx(struct ieee802154_hw *hw, struct sk_buff *skb) ...@@ -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) void ieee802154_rx(struct ieee802154_hw *hw, struct sk_buff *skb)
{ {
WARN_ON_ONCE(softirq_count() == 0);
mac802154_subif_rx(hw, skb); mac802154_subif_rx(hw, skb);
} }
EXPORT_SYMBOL(ieee802154_rx); EXPORT_SYMBOL(ieee802154_rx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment