Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ed3bc72 authored by John W. Linville's avatar John W. Linville
Browse files

mac80211: use netif_receive_skb in ieee80211_tx_status callpath



This avoids the extra queueing from calling netif_rx.

Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 5548a8a1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -377,7 +377,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
				skb2 = skb_clone(skb, GFP_ATOMIC);
				if (skb2) {
					skb2->dev = prev_dev;
					netif_rx(skb2);
					netif_receive_skb(skb2);
				}
			}

@@ -386,7 +386,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
	}
	if (prev_dev) {
		skb->dev = prev_dev;
		netif_rx(skb);
		netif_receive_skb(skb);
		skb = NULL;
	}
	rcu_read_unlock();