summaryrefslogtreecommitdiffstats
path: root/net/mac802154/iface.c
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-10-27 17:13:30 +0100
committerMarcel Holtmann <marcel@holtmann.org>2014-10-27 18:07:40 +0100
commitc5c47e67bcd24638a059b1b5e9ec18c95f8634ca (patch)
treec57352e1df69afab550d8df129a0bee16b3455a7 /net/mac802154/iface.c
parent61a2281458956db519f2c24fa40bf277adea2a67 (diff)
downloadop-kernel-dev-c5c47e67bcd24638a059b1b5e9ec18c95f8634ca.zip
op-kernel-dev-c5c47e67bcd24638a059b1b5e9ec18c95f8634ca.tar.gz
mac802154: rx: use tasklet instead workqueue
Tasklets have much less overhead than workqueues. This patch also removes the heap allocation for the worker on receiving path. Like mac80211 we should prefer use a tasklet here instead a workqueue to getting fast out of interrupt context when ieee802154_rx_irqsafe is called by driver. Like wireless inside the tasklet context we should call netif_receive_skb instead netif_rx_ni anymore. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/iface.c')
-rw-r--r--net/mac802154/iface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c
index be45dc9..311f60c 100644
--- a/net/mac802154/iface.c
+++ b/net/mac802154/iface.c
@@ -376,7 +376,7 @@ void mac802154_wpan_setup(struct net_device *dev)
static int mac802154_process_data(struct net_device *dev, struct sk_buff *skb)
{
- return netif_rx_ni(skb);
+ return netif_receive_skb(skb);
}
static int
OpenPOWER on IntegriCloud