Commit 3ed27b60 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by Kalle Valo

mt76: switch to netif_napi_add_tx()

Switch to the new API not requiring passing in NAPI_POLL_WEIGHT.
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220504163316.549648-3-kuba@kernel.org
parent f1c5d4de
...@@ -223,8 +223,8 @@ int mt7603_dma_init(struct mt7603_dev *dev) ...@@ -223,8 +223,8 @@ int mt7603_dma_init(struct mt7603_dev *dev)
if (ret) if (ret)
return ret; return ret;
netif_tx_napi_add(&dev->mt76.tx_napi_dev, &dev->mt76.tx_napi, netif_napi_add_tx(&dev->mt76.tx_napi_dev, &dev->mt76.tx_napi,
mt7603_poll_tx, NAPI_POLL_WEIGHT); mt7603_poll_tx);
napi_enable(&dev->mt76.tx_napi); napi_enable(&dev->mt76.tx_napi);
return 0; return 0;
......
...@@ -284,8 +284,8 @@ int mt7615_dma_init(struct mt7615_dev *dev) ...@@ -284,8 +284,8 @@ int mt7615_dma_init(struct mt7615_dev *dev)
if (ret < 0) if (ret < 0)
return ret; return ret;
netif_tx_napi_add(&dev->mt76.tx_napi_dev, &dev->mt76.tx_napi, netif_napi_add_tx(&dev->mt76.tx_napi_dev, &dev->mt76.tx_napi,
mt7615_poll_tx, NAPI_POLL_WEIGHT); mt7615_poll_tx);
napi_enable(&dev->mt76.tx_napi); napi_enable(&dev->mt76.tx_napi);
mt76_poll(dev, MT_WPDMA_GLO_CFG, mt76_poll(dev, MT_WPDMA_GLO_CFG,
......
...@@ -230,8 +230,8 @@ int mt76x02_dma_init(struct mt76x02_dev *dev) ...@@ -230,8 +230,8 @@ int mt76x02_dma_init(struct mt76x02_dev *dev)
if (ret) if (ret)
return ret; return ret;
netif_tx_napi_add(&dev->mt76.tx_napi_dev, &dev->mt76.tx_napi, netif_napi_add_tx(&dev->mt76.tx_napi_dev, &dev->mt76.tx_napi,
mt76x02_poll_tx, NAPI_POLL_WEIGHT); mt76x02_poll_tx);
napi_enable(&dev->mt76.tx_napi); napi_enable(&dev->mt76.tx_napi);
return 0; return 0;
......
...@@ -434,8 +434,8 @@ int mt7915_dma_init(struct mt7915_dev *dev) ...@@ -434,8 +434,8 @@ int mt7915_dma_init(struct mt7915_dev *dev)
if (ret < 0) if (ret < 0)
return ret; return ret;
netif_tx_napi_add(&dev->mt76.tx_napi_dev, &dev->mt76.tx_napi, netif_napi_add_tx(&dev->mt76.tx_napi_dev, &dev->mt76.tx_napi,
mt7915_poll_tx, NAPI_POLL_WEIGHT); mt7915_poll_tx);
napi_enable(&dev->mt76.tx_napi); napi_enable(&dev->mt76.tx_napi);
mt7915_dma_enable(dev); mt7915_dma_enable(dev);
......
...@@ -296,8 +296,8 @@ int mt7921_dma_init(struct mt7921_dev *dev) ...@@ -296,8 +296,8 @@ int mt7921_dma_init(struct mt7921_dev *dev)
if (ret < 0) if (ret < 0)
return ret; return ret;
netif_tx_napi_add(&dev->mt76.tx_napi_dev, &dev->mt76.tx_napi, netif_napi_add_tx(&dev->mt76.tx_napi_dev, &dev->mt76.tx_napi,
mt7921_poll_tx, NAPI_POLL_WEIGHT); mt7921_poll_tx);
napi_enable(&dev->mt76.tx_napi); napi_enable(&dev->mt76.tx_napi);
return mt7921_dma_enable(dev); return mt7921_dma_enable(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment