diff options
author | Felix Fietkau <nbd@nbd.name> | 2022-04-05 21:57:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-06 15:08:49 +0200 |
commit | 804775dfc2885e93a0a4b35db1914c2cc25172b5 (patch) | |
tree | a98529f57bf2a98213fed83c48e2b071a7907853 /drivers/net/ethernet/mediatek/mtk_wed_ops.c | |
parent | dt-bindings: arm: mediatek: document the pcie mirror node on MT7622 (diff) | |
download | linux-804775dfc2885e93a0a4b35db1914c2cc25172b5.tar.xz linux-804775dfc2885e93a0a4b35db1914c2cc25172b5.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/mediatek/mtk_wed_ops.c')
-rw-r--r-- | drivers/net/ethernet/mediatek/mtk_wed_ops.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mediatek/mtk_wed_ops.c b/drivers/net/ethernet/mediatek/mtk_wed_ops.c new file mode 100644 index 000000000000..a5d9d8a5bce2 --- /dev/null +++ b/drivers/net/ethernet/mediatek/mtk_wed_ops.c @@ -0,0 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* Copyright (C) 2020 Felix Fietkau <nbd@nbd.name> */ + +#include <linux/kernel.h> +#include <linux/soc/mediatek/mtk_wed.h> + +const struct mtk_wed_ops __rcu *mtk_soc_wed_ops; +EXPORT_SYMBOL_GPL(mtk_soc_wed_ops); |