diff mbox series

[2/2] mac80211: calculcate skb hash early when using itxq

Message ID 20200726130947.88145-2-nbd@nbd.name (mailing list archive)
State Accepted
Delegated to: Johannes Berg
Headers show
Series None | expand

Commit Message

Felix Fietkau July 26, 2020, 1:09 p.m. UTC
This avoids flow separation issues when using software encryption

Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 net/mac80211/tx.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Toke Høiland-Jørgensen Aug. 11, 2020, 9:39 a.m. UTC | #1
Felix Fietkau <nbd@nbd.name> writes:

> This avoids flow separation issues when using software encryption

Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
diff mbox series

Patch

diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index a4e7ef6b0457..7cb73416a372 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -3951,6 +3951,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) {