net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED)
authorFelix Fietkau <nbd@nbd.name>
Tue, 5 Apr 2022 19:57:47 +0000 (21:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Apr 2022 13:08:49 +0000 (14:08 +0100)
commit804775dfc2885e93a0a4b35db1914c2cc25172b5
treea98529f57bf2a98213fed83c48e2b071a7907853
parentf14ac41b785f231573fe935a2eb5aaf737447f0c
net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED)

The Wireless Ethernet Dispatch subsystem on the MT7622 SoC can be
configured to intercept and handle access to the DMA queues and
PCIe interrupts for a MT7615/MT7915 wireless card.
It can manage the internal WDMA (Wireless DMA) controller, which allows
ethernet packets to be passed from the packet switch engine (PSE) to the
wireless card, bypassing the CPU entirely.
This can be used to implement hardware flow offloading from ethernet to
WLAN.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/Kconfig
drivers/net/ethernet/mediatek/Makefile
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h
drivers/net/ethernet/mediatek/mtk_wed.c [new file with mode: 0644]
drivers/net/ethernet/mediatek/mtk_wed.h [new file with mode: 0644]
drivers/net/ethernet/mediatek/mtk_wed_debugfs.c [new file with mode: 0644]
drivers/net/ethernet/mediatek/mtk_wed_ops.c [new file with mode: 0644]
drivers/net/ethernet/mediatek/mtk_wed_regs.h [new file with mode: 0644]
include/linux/soc/mediatek/mtk_wed.h [new file with mode: 0644]