提交 4d4b12bc 编写于 作者: L Lorenzo Bianconi 提交者: Felix Fietkau

mt76: dma: remove napi from mt76_dma_rx_fill signature

Remove napi from mt76_dma_rx_fill routine signature since
it is a leftover of a previous implementation and it is no
longer used
Signed-off-by: NLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: NFelix Fietkau <nbd@nbd.name>
上级 7267a796
...@@ -318,7 +318,7 @@ int mt76_dma_tx_queue_skb(struct mt76_dev *dev, struct mt76_queue *q, ...@@ -318,7 +318,7 @@ int mt76_dma_tx_queue_skb(struct mt76_dev *dev, struct mt76_queue *q,
EXPORT_SYMBOL_GPL(mt76_dma_tx_queue_skb); EXPORT_SYMBOL_GPL(mt76_dma_tx_queue_skb);
static int static int
mt76_dma_rx_fill(struct mt76_dev *dev, struct mt76_queue *q, bool napi) mt76_dma_rx_fill(struct mt76_dev *dev, struct mt76_queue *q)
{ {
dma_addr_t addr; dma_addr_t addr;
void *buf; void *buf;
...@@ -392,7 +392,7 @@ mt76_dma_rx_reset(struct mt76_dev *dev, enum mt76_rxq_id qid) ...@@ -392,7 +392,7 @@ mt76_dma_rx_reset(struct mt76_dev *dev, enum mt76_rxq_id qid)
mt76_dma_rx_cleanup(dev, q); mt76_dma_rx_cleanup(dev, q);
mt76_dma_sync_idx(dev, q); mt76_dma_sync_idx(dev, q);
mt76_dma_rx_fill(dev, q, false); mt76_dma_rx_fill(dev, q);
} }
static void static void
...@@ -471,7 +471,7 @@ mt76_dma_rx_process(struct mt76_dev *dev, struct mt76_queue *q, int budget) ...@@ -471,7 +471,7 @@ mt76_dma_rx_process(struct mt76_dev *dev, struct mt76_queue *q, int budget)
dev->drv->rx_skb(dev, q - dev->q_rx, skb); dev->drv->rx_skb(dev, q - dev->q_rx, skb);
} }
mt76_dma_rx_fill(dev, q, true); mt76_dma_rx_fill(dev, q);
return done; return done;
} }
...@@ -512,7 +512,7 @@ mt76_dma_init(struct mt76_dev *dev) ...@@ -512,7 +512,7 @@ mt76_dma_init(struct mt76_dev *dev)
for (i = 0; i < ARRAY_SIZE(dev->q_rx); i++) { for (i = 0; i < ARRAY_SIZE(dev->q_rx); i++) {
netif_napi_add(&dev->napi_dev, &dev->napi[i], mt76_dma_rx_poll, netif_napi_add(&dev->napi_dev, &dev->napi[i], mt76_dma_rx_poll,
64); 64);
mt76_dma_rx_fill(dev, &dev->q_rx[i], false); mt76_dma_rx_fill(dev, &dev->q_rx[i]);
skb_queue_head_init(&dev->rx_skb[i]); skb_queue_head_init(&dev->rx_skb[i]);
napi_enable(&dev->napi[i]); napi_enable(&dev->napi[i]);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册