2020-07-26 13:14:12

by Felix Fietkau

[permalink] [raw]
Subject: [PATCH 2/2] mac80211: calculcate skb hash early when using itxq

This avoids flow separation issues when using software encryption

Signed-off-by: Felix Fietkau <[email protected]>
---
net/mac80211/tx.c | 1 +
1 file changed, 1 insertion(+)

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) {
--
2.24.0


2020-08-11 09:39:56

by Toke Høiland-Jørgensen

[permalink] [raw]
Subject: Re: [PATCH 2/2] mac80211: calculcate skb hash early when using itxq

Felix Fietkau <[email protected]> writes:

> This avoids flow separation issues when using software encryption

Acked-by: Toke Høiland-Jørgensen <[email protected]>