Commit 469100d6 authored by Alexander Aring's avatar Alexander Aring Committed by Marcel Holtmann

mac802154: rx: rename remove mac802154_subif_rx

This patch removes the mac802154_subif_rx function and do the necessary
calls inside of ieee802154_rx function. The ieee802154_rx is small
enough to move the functionality inside this function.
Signed-off-by: default avatarAlexander Aring <alex.aring@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 4ca18be5
...@@ -242,11 +242,12 @@ mac802154_monitors_rx(struct ieee802154_local *local, struct sk_buff *skb) ...@@ -242,11 +242,12 @@ mac802154_monitors_rx(struct ieee802154_local *local, struct sk_buff *skb)
rcu_read_unlock(); rcu_read_unlock();
} }
static void void ieee802154_rx(struct ieee802154_hw *hw, struct sk_buff *skb)
mac802154_subif_rx(struct ieee802154_hw *hw, struct sk_buff *skb)
{ {
struct ieee802154_local *local = hw_to_local(hw); struct ieee802154_local *local = hw_to_local(hw);
WARN_ON_ONCE(softirq_count() == 0);
skb->protocol = htons(ETH_P_IEEE802154); skb->protocol = htons(ETH_P_IEEE802154);
skb_reset_mac_header(skb); skb_reset_mac_header(skb);
...@@ -273,13 +274,6 @@ mac802154_subif_rx(struct ieee802154_hw *hw, struct sk_buff *skb) ...@@ -273,13 +274,6 @@ mac802154_subif_rx(struct ieee802154_hw *hw, struct sk_buff *skb)
fail: fail:
kfree_skb(skb); kfree_skb(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); EXPORT_SYMBOL(ieee802154_rx);
void void
......
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