1ec22dbbc8a0c420f166b063d890a2b3a49f9921
[openwrt/staging/wigyori.git] / package / kernel / mac80211 / patches / subsys / 320-mac80211-add-missing-queue-hash-initialization-to-80.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Mon, 17 Aug 2020 13:55:56 +0200
3 Subject: [PATCH] mac80211: add missing queue/hash initialization to 802.3
4 xmit
5
6 Fixes AQL for encap-offloaded tx
7
8 Signed-off-by: Felix Fietkau <nbd@nbd.name>
9 ---
10
11 --- a/net/mac80211/tx.c
12 +++ b/net/mac80211/tx.c
13 @@ -4206,6 +4206,12 @@ static void ieee80211_8023_xmit(struct i
14 if (is_zero_ether_addr(ra))
15 goto out_free;
16
17 + if (local->ops->wake_tx_queue) {
18 + u16 queue = __ieee80211_select_queue(sdata, sta, skb);
19 + skb_set_queue_mapping(skb, queue);
20 + skb_get_hash(skb);
21 + }
22 +
23 multicast = is_multicast_ether_addr(ra);
24
25 if (sta)