95ab3ab9fbd9b9cc9f3b4db65fd977ce40e2465c
[openwrt/staging/yousong.git] /
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