Skip to content

Commit 48c0670

Browse files
mbizonfreeboxjmberg-intel
authored andcommitted
mac80211: fix TCP performance on mesh interface
sta is NULL for mesh point (resolved later), so sk pacing parameters were not applied. Signed-off-by: Maxime Bizon <mbizon@freebox.fr> Link: https://lore.kernel.org/r/66f51659416ac35d6b11a313bd3ffe8b8a43dd55.camel@freebox.fr Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 49573ff commit 48c0670

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/mac80211/tx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4191,11 +4191,11 @@ void __ieee80211_subif_start_xmit(struct sk_buff *skb,
41914191

41924192
ieee80211_aggr_check(sdata, sta, skb);
41934193

4194+
sk_pacing_shift_update(skb->sk, sdata->local->hw.tx_sk_pacing_shift);
4195+
41944196
if (sta) {
41954197
struct ieee80211_fast_tx *fast_tx;
41964198

4197-
sk_pacing_shift_update(skb->sk, sdata->local->hw.tx_sk_pacing_shift);
4198-
41994199
fast_tx = rcu_dereference(sta->fast_tx);
42004200

42014201
if (fast_tx &&

0 commit comments

Comments
 (0)