* [PATCH] mt76: dma: avoid indirect call in mt76_dma_tx_queue_skb
[not found] <cover.1546267294.git.lorenzo.bianconi@redhat.com>
@ 2018-12-31 14:42 ` Lorenzo Bianconi
2018-12-31 14:45 ` Felix Fietkau
0 siblings, 1 reply; 2+ messages in thread
From: Lorenzo Bianconi @ 2018-12-31 14:42 UTC (permalink / raw)
To: nbd; +Cc: linux-wireless, sgruszka
Call mt76_dma_add_buf routine directly in mt76_dma_tx_queue_skb
and avoid indirect call if not necessary
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
---
drivers/net/wireless/mediatek/mt76/dma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/mediatek/mt76/dma.c b/drivers/net/wireless/mediatek/mt76/dma.c
index 1db163c40dcf..e769c8a555dd 100644
--- a/drivers/net/wireless/mediatek/mt76/dma.c
+++ b/drivers/net/wireless/mediatek/mt76/dma.c
@@ -300,7 +300,7 @@ int mt76_dma_tx_queue_skb(struct mt76_dev *dev, struct mt76_queue *q,
if (q->queued + (n + 1) / 2 >= q->ndesc - 1)
goto unmap;
- return dev->queue_ops->add_buf(dev, q, buf, n, tx_info, skb, t);
+ return mt76_dma_add_buf(dev, q, buf, n, tx_info, skb, t);
unmap:
ret = -ENOMEM;
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mt76: dma: avoid indirect call in mt76_dma_tx_queue_skb
2018-12-31 14:42 ` [PATCH] mt76: dma: avoid indirect call in mt76_dma_tx_queue_skb Lorenzo Bianconi
@ 2018-12-31 14:45 ` Felix Fietkau
0 siblings, 0 replies; 2+ messages in thread
From: Felix Fietkau @ 2018-12-31 14:45 UTC (permalink / raw)
To: Lorenzo Bianconi; +Cc: linux-wireless, sgruszka
On 2018-12-31 15:42, Lorenzo Bianconi wrote:
> Call mt76_dma_add_buf routine directly in mt76_dma_tx_queue_skb
> and avoid indirect call if not necessary
>
> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Applied, thanks.
- Felix
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-12-31 14:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <cover.1546267294.git.lorenzo.bianconi@redhat.com>
2018-12-31 14:42 ` [PATCH] mt76: dma: avoid indirect call in mt76_dma_tx_queue_skb Lorenzo Bianconi
2018-12-31 14:45 ` Felix Fietkau
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.