mac80211: another optimization for tx performance
[openwrt.git] / package / mac80211 / patches / 540-mac80211_tx_optimization.patch
1 --- a/net/mac80211/tx.c
2 +++ b/net/mac80211/tx.c
3 @@ -1549,8 +1549,10 @@ static int ieee80211_skb_resize(struct i
4
5 if (skb_header_cloned(skb))
6 I802_DEBUG_INC(local->tx_expand_skb_head_cloned);
7 - else
8 + else if (head_need || tail_need)
9 I802_DEBUG_INC(local->tx_expand_skb_head);
10 + else
11 + return 0;
12
13 if (pskb_expand_head(skb, head_need, tail_need, GFP_ATOMIC)) {
14 wiphy_debug(local->hw.wiphy,
This page took 0.043716 seconds and 5 git commands to generate.