summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mediatek/mt76/mt7915
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2020-07-26 13:09:51 +0200
committerFelix Fietkau <nbd@nbd.name>2021-04-12 00:01:21 +0200
commitaa40528a5bca990ef8f6a82eb26d23c81b4b3cff (patch)
treefe664da27700e09b6872d6b5f6cf55d759ffc76d /drivers/net/wireless/mediatek/mt76/mt7915
parent7139b5c0c98af1e2a04bd9ff09d2c01c40f1da41 (diff)
downloadlinux-stable-aa40528a5bca990ef8f6a82eb26d23c81b4b3cff.tar.gz
linux-stable-aa40528a5bca990ef8f6a82eb26d23c81b4b3cff.tar.bz2
linux-stable-aa40528a5bca990ef8f6a82eb26d23c81b4b3cff.zip
mt76: use threaded NAPI
With threaded NAPI, the rx handler function is no longer bound to the CPU that fired the interrupt, which significantly helps to spread the workload over multiple CPUs, especially when multiple devices are using threaded NAPI at the same time. Exclude the tx handler from threaded NAPI by using a separate dummy netdev. The work is small and short-lived enough that it makes more sense to run it in softirq instead of creating a dedicated thread Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7915')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt7915/dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/dma.c b/drivers/net/wireless/mediatek/mt76/mt7915/dma.c
index bf51304a770b..3c961bf55e97 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/dma.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/dma.c
@@ -325,7 +325,7 @@ int mt7915_dma_init(struct mt7915_dev *dev)
if (ret < 0)
return ret;
- netif_tx_napi_add(&dev->mt76.napi_dev, &dev->mt76.tx_napi,
+ netif_tx_napi_add(&dev->mt76.tx_napi_dev, &dev->mt76.tx_napi,
mt7915_poll_tx, NAPI_POLL_WEIGHT);
napi_enable(&dev->mt76.tx_napi);