summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mediatek/mt76/dma.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2022-12-31 10:44:33 +0300
committerFelix Fietkau <nbd@nbd.name>2023-04-19 11:09:43 +0300
commitf4d63a87b527de258eec5bd6e9547f063d472b79 (patch)
treefadd457aa1515066fc31776dc6de331920d2f71f /drivers/net/wireless/mediatek/mt76/dma.c
parente12b2e99b8799f26432528934edc8677888ad72f (diff)
downloadlinux-f4d63a87b527de258eec5bd6e9547f063d472b79.tar.xz
wifi: mt76: dma: use napi_build_skb
Improves performance by using bulk allocation Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/dma.c')
-rw-r--r--drivers/net/wireless/mediatek/mt76/dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/dma.c b/drivers/net/wireless/mediatek/mt76/dma.c
index 6c0174313d09..465190ebaf1c 100644
--- a/drivers/net/wireless/mediatek/mt76/dma.c
+++ b/drivers/net/wireless/mediatek/mt76/dma.c
@@ -853,7 +853,7 @@ mt76_dma_rx_process(struct mt76_dev *dev, struct mt76_queue *q, int budget)
!(dev->drv->rx_check(dev, data, len)))
goto free_frag;
- skb = build_skb(data, q->buf_size);
+ skb = napi_build_skb(data, q->buf_size);
if (!skb)
goto free_frag;