aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <[email protected]>2020-07-26 15:09:47 +0200
committerJohannes Berg <[email protected]>2020-07-31 09:24:24 +0200
commit180ac48ee62f53c26787350a956c5ac371cbe0b7 (patch)
tree138fcfcd063c45566f5107743bdcb8f0d24fe460
parent48a54f6bc456859dabbd1fbd805e233d260754cf (diff)
mac80211: calculate skb hash early when using itxq
This avoids flow separation issues when using software encryption. Signed-off-by: Felix Fietkau <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Johannes Berg <[email protected]>
-rw-r--r--net/mac80211/tx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 7c0abe477b03..fd44a71eea58 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -3952,6 +3952,7 @@ void __ieee80211_subif_start_xmit(struct sk_buff *skb,
if (local->ops->wake_tx_queue) {
u16 queue = __ieee80211_select_queue(sdata, sta, skb);
skb_set_queue_mapping(skb, queue);
+ skb_get_hash(skb);
}
if (sta) {