ath79: modify device name of I-O DATA WN-AC1600DGR2
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / subsys / 356-mac80211-set-NETIF_F_LLTX-when-using-intermediate-tx.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Sat, 16 Mar 2019 18:01:53 +0100
3 Subject: [PATCH] mac80211: set NETIF_F_LLTX when using intermediate tx
4 queues
5
6 When using iTXQ, tx sequence number allocation and statistics are run at
7 dequeue time. Because of that, it is safe to enable NETIF_F_LLTX, which
8 allows tx handlers to run on multiple CPUs in parallel.
9
10 Signed-off-by: Felix Fietkau <nbd@nbd.name>
11 ---
12
13 --- a/net/mac80211/iface.c
14 +++ b/net/mac80211/iface.c
15 @@ -1301,6 +1301,7 @@ static void ieee80211_if_setup(struct ne
16 static void ieee80211_if_setup_no_queue(struct net_device *dev)
17 {
18 ieee80211_if_setup(dev);
19 + dev->features |= NETIF_F_LLTX;
20 #if LINUX_VERSION_IS_GEQ(4,3,0)
21 dev->priv_flags |= IFF_NO_QUEUE;
22 #else