mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: Introduce the NPU generic layer
Add the NPU generic layer in mt76 module. NPU will be used to enable traffic forward offloading between the MT76 NIC and the Airoha ethernet one available on the Airoha EN7581 SoC using Netfilter Flowtable APIs. Signed-off-by: Lorenzo Bianconi <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
a3b6c67c97
commit
141a815570
+5
-1
@@ -625,6 +625,8 @@ int mt76_create_page_pool(struct mt76_dev *dev, struct mt76_queue *q)
|
||||
case MT_RXQ_MAIN:
|
||||
case MT_RXQ_BAND1:
|
||||
case MT_RXQ_BAND2:
|
||||
case MT_RXQ_NPU0:
|
||||
case MT_RXQ_NPU1:
|
||||
pp_params.pool_size = 256;
|
||||
break;
|
||||
default:
|
||||
@@ -806,6 +808,7 @@ void mt76_free_device(struct mt76_dev *dev)
|
||||
destroy_workqueue(dev->wq);
|
||||
dev->wq = NULL;
|
||||
}
|
||||
mt76_npu_deinit(dev);
|
||||
ieee80211_free_hw(dev->hw);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(mt76_free_device);
|
||||
@@ -1545,7 +1548,8 @@ void mt76_rx_poll_complete(struct mt76_dev *dev, enum mt76_rxq_id q,
|
||||
|
||||
while ((skb = __skb_dequeue(&dev->rx_skb[q])) != NULL) {
|
||||
mt76_check_sta(dev, skb);
|
||||
if (mtk_wed_device_active(&dev->mmio.wed))
|
||||
if (mtk_wed_device_active(&dev->mmio.wed) ||
|
||||
mt76_npu_device_active(dev))
|
||||
__skb_queue_tail(&frames, skb);
|
||||
else
|
||||
mt76_rx_aggr_reorder(skb, &frames);
|
||||
|
||||
Reference in New Issue
Block a user