OSDN Git Service

mt76: use threaded NAPI
authorFelix Fietkau <nbd@nbd.name>
Sun, 26 Jul 2020 11:09:51 +0000 (13:09 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sun, 11 Apr 2021 22:01:21 +0000 (00:01 +0200)
commitaa40528a5bca990ef8f6a82eb26d23c81b4b3cff
treefe664da27700e09b6872d6b5f6cf55d759ffc76d
parent7139b5c0c98af1e2a04bd9ff09d2c01c40f1da41
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>
drivers/net/wireless/mediatek/mt76/dma.c
drivers/net/wireless/mediatek/mt76/mt76.h
drivers/net/wireless/mediatek/mt76/mt7603/dma.c
drivers/net/wireless/mediatek/mt76/mt7615/dma.c
drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c
drivers/net/wireless/mediatek/mt76/mt7915/dma.c
drivers/net/wireless/mediatek/mt76/mt7921/dma.c