summaryrefslogtreecommitdiffstats
path: root/net/mac80211/tx.c
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2021-03-08 23:01:49 +0100
committerJohannes Berg <johannes.berg@intel.com>2021-04-08 12:03:06 +0200
commit196900fd97e26292f0bb90758690db4cd5e64e98 (patch)
tree20b2803e87c72f2f334ba7fd53e921ed62f47256 /net/mac80211/tx.c
parentmac80211: don't apply flow control on management frames (diff)
downloadlinux-196900fd97e26292f0bb90758690db4cd5e64e98.tar.xz
linux-196900fd97e26292f0bb90758690db4cd5e64e98.zip
mac80211: set sk_pacing_shift for 802.3 txpath
Similar to 802.11 txpath, set socket sk_pacing_shift for 802.3 tx path. Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Link: https://lore.kernel.org/r/7230abc48dcf940657838546cdaef7dce691ecdd.1615240733.git.lorenzo@kernel.org Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r--net/mac80211/tx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index ac765dd19d02..7aaa71ed49b0 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -4162,6 +4162,9 @@ static bool ieee80211_tx_8023(struct ieee80211_sub_if_data *sdata,
unsigned long flags;
int q = info->hw_queue;
+ if (sta)
+ sk_pacing_shift_update(skb->sk, local->hw.tx_sk_pacing_shift);
+
if (ieee80211_queue_skb(local, sdata, sta, skb))
return true;