]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
mac80211: add missing queue/hash initialization to 802.3 xmit
authorFelix Fietkau <nbd@nbd.name>
Tue, 8 Sep 2020 12:36:49 +0000 (14:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:51:22 +0000 (11:51 +0100)
[ Upstream commit 5f8d69eaab1915df97f4f2aca89ea16abdd092d5 ]

Fixes AQL for encap-offloaded tx

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20200908123702.88454-2-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/tx.c

index dca01d7e6e3e0bc17cbfc58dc5f662fa0befa290..282b0bc201eebed07033f398a754597cd57f2098 100644 (file)
@@ -4209,6 +4209,12 @@ static void ieee80211_8023_xmit(struct ieee80211_sub_if_data *sdata,
        if (is_zero_ether_addr(ra))
                goto out_free;
 
+       if (local->ops->wake_tx_queue) {
+               u16 queue = __ieee80211_select_queue(sdata, sta, skb);
+               skb_set_queue_mapping(skb, queue);
+               skb_get_hash(skb);
+       }
+
        multicast = is_multicast_ether_addr(ra);
 
        if (sta)