diff mbox series

mac80211: fix TCP performance on mesh interface

Message ID 66f51659416ac35d6b11a313bd3ffe8b8a43dd55.camel@freebox.fr (mailing list archive)
State Accepted
Delegated to: Johannes Berg
Headers show
Series mac80211: fix TCP performance on mesh interface | expand

Commit Message

Maxime Bizon Nov. 18, 2021, 11:58 a.m. UTC
From: Maxime Bizon <mbizon@freebox.fr>

sta is NULL for mesh point (resolved later), so sk pacing parameters
were not applied.

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
---
 net/mac80211/tx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index a756a197c770..f8f5bffd6e4b 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -4197,11 +4197,11 @@  void __ieee80211_subif_start_xmit(struct sk_buff *skb,
 
 	ieee80211_aggr_check(sdata, sta, skb);
 
+	sk_pacing_shift_update(skb->sk, sdata->local->hw.tx_sk_pacing_shift);
+
 	if (sta) {
 		struct ieee80211_fast_tx *fast_tx;
 
-		sk_pacing_shift_update(skb->sk, sdata->local->hw.tx_sk_pacing_shift);
-
 		fast_tx = rcu_dereference(sta->fast_tx);
 
 		if (fast_tx &&