40aa76f2dfa584d613fd4a3093b25a651ca4459c
[openwrt/staging/mkresin.git] / package / kernel / mac80211 / patches / subsys / 372-mac80211-set-sk_pacing_shift-for-802.3-txpath.patch
1 From: Lorenzo Bianconi <lorenzo@kernel.org>
2 Date: Mon, 8 Mar 2021 23:01:49 +0100
3 Subject: [PATCH] mac80211: set sk_pacing_shift for 802.3 txpath
4
5 Similar to 802.11 txpath, set socket sk_pacing_shift for 802.3 tx path.
6
7 Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
8 ---
9
10 --- a/net/mac80211/tx.c
11 +++ b/net/mac80211/tx.c
12 @@ -4142,6 +4142,9 @@ static bool ieee80211_tx_8023(struct iee
13 unsigned long flags;
14 int q = info->hw_queue;
15
16 + if (sta)
17 + sk_pacing_shift_update(skb->sk, local->hw.tx_sk_pacing_shift);
18 +
19 if (ieee80211_queue_skb(local, sdata, sta, skb))
20 return true;
21