diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-05-04 19:33:15 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2022-05-06 08:47:52 +0300 |
commit | 3ed27b602cc3e13e37a411980083bb850aff0a01 (patch) | |
tree | 2ce12b437a5d666106f4503b293c08bb69d20f96 /drivers/net/wireless/mediatek/mt76/mt7921/dma.c | |
parent | f1c5d4ded782800d58321a9f10d0caff2af56fc3 (diff) | |
download | linux-3ed27b602cc3e13e37a411980083bb850aff0a01.tar.xz |
mt76: switch to netif_napi_add_tx()
Switch to the new API not requiring passing in NAPI_POLL_WEIGHT.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220504163316.549648-3-kuba@kernel.org
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7921/dma.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7921/dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/dma.c b/drivers/net/wireless/mediatek/mt76/mt7921/dma.c index ca7e20fb5fc0..34b3effe14f3 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/dma.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/dma.c @@ -296,8 +296,8 @@ int mt7921_dma_init(struct mt7921_dev *dev) if (ret < 0) return ret; - netif_tx_napi_add(&dev->mt76.tx_napi_dev, &dev->mt76.tx_napi, - mt7921_poll_tx, NAPI_POLL_WEIGHT); + netif_napi_add_tx(&dev->mt76.tx_napi_dev, &dev->mt76.tx_napi, + mt7921_poll_tx); napi_enable(&dev->mt76.tx_napi); return mt7921_dma_enable(dev); |