mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 09:39:00 +00:00
23 lines
724 B
Diff
23 lines
724 B
Diff
|
From: Felix Fietkau <nbd@nbd.name>
|
||
|
Date: Sat, 16 Mar 2019 18:01:53 +0100
|
||
|
Subject: [PATCH] mac80211: set NETIF_F_LLTX when using intermediate tx
|
||
|
queues
|
||
|
|
||
|
When using iTXQ, tx sequence number allocation and statistics are run at
|
||
|
dequeue time. Because of that, it is safe to enable NETIF_F_LLTX, which
|
||
|
allows tx handlers to run on multiple CPUs in parallel.
|
||
|
|
||
|
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||
|
---
|
||
|
|
||
|
--- a/net/mac80211/iface.c
|
||
|
+++ b/net/mac80211/iface.c
|
||
|
@@ -1301,6 +1301,7 @@ static void ieee80211_if_setup(struct ne
|
||
|
static void ieee80211_if_setup_no_queue(struct net_device *dev)
|
||
|
{
|
||
|
ieee80211_if_setup(dev);
|
||
|
+ dev->features |= NETIF_F_LLTX;
|
||
|
#if LINUX_VERSION_IS_GEQ(4,3,0)
|
||
|
dev->priv_flags |= IFF_NO_QUEUE;
|
||
|
#else
|