Skip to content

Commit

Permalink
mac802154: tx: allow xmit complete from hard irq
Browse files Browse the repository at this point in the history
Replace consume_skb with dev_consume_skb_any in ieee802154_xmit_complete
which can be called in hard irq and other contexts.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Alexander Aring authored and Marcel Holtmann committed May 19, 2015
1 parent a2c390a commit 3862eba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions net/mac802154/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,10 @@ void ieee802154_xmit_complete(struct ieee802154_hw *hw, struct sk_buff *skb,
hrtimer_start(&local->ifs_timer,
ktime_set(0, hw->phy->sifs_period * NSEC_PER_USEC),
HRTIMER_MODE_REL);

consume_skb(skb);
} else {
ieee802154_wake_queue(hw);
consume_skb(skb);
}

dev_consume_skb_any(skb);
}
EXPORT_SYMBOL(ieee802154_xmit_complete);

0 comments on commit 3862eba

Please sign in to comment.