diff options
author | Maxime Bizon <mbizon@freebox.fr> | 2021-11-18 12:58:24 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2021-11-26 11:34:29 +0100 |
commit | 48c06708e63e71b4395e4159797366aa03be10ff (patch) | |
tree | aab6ac5158f74e126ccc4937ef7c32112dba7126 /net/mac80211/tx.c | |
parent | Merge branch 'tls-splice_read-fixes' (diff) | |
download | linux-48c06708e63e71b4395e4159797366aa03be10ff.tar.xz linux-48c06708e63e71b4395e4159797366aa03be10ff.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | net/mac80211/tx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 278945e3e08a..51ec5f9bc2e0 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -4191,11 +4191,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 && |