[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210713160745.59707-1-nbd@nbd.name>
Date: Tue, 13 Jul 2021 18:07:38 +0200
From: Felix Fietkau <nbd@....name>
To: linux-wireless@...r.kernel.org
Cc: netdev@...r.kernel.org, pablo@...filter.org, ryder.lee@...iatek.com
Subject: [RFC 0/7] Ethernet->WLAN hardware flow offloading support on MT7622
This patch series adds hardware flow offloading for routing/NAT packets from
ethernet to WLAN on MT7622 SoC, in combination with MT7915 WLAN devices
This only offloads one direction, WLAN->Ethernet offload is not supported by
MT7622 (but will be in newer SoC designs).
In order to make this work, the SoC contains a subsystem named Wireless
Ethernet Dispatch. It intercepts access to the WLAN DMA register space and
controls the DMA queues in order to be able to inject packets coming in from
the packet processing engine (PPE). It also intercepts IRQs from PCIe.
Felix Fietkau (7):
mac80211: add support for .ndo_fill_forward_path
net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch
(WED)
net: ethernet: mtk_eth_soc: implement flow offloading to WED devices
mt76: dma: add wrapper macro for accessing queue registers
mt76: make number of tokens configurable dynamically
mt76: mt7915: remove irq parameter from mt7915_mmio_init
mt76: mt7915: add Wireless Ethernet Dispatch support
arch/arm64/boot/dts/mediatek/mt7622.dtsi | 22 +
drivers/net/ethernet/mediatek/Kconfig | 4 +
drivers/net/ethernet/mediatek/Makefile | 5 +
drivers/net/ethernet/mediatek/mtk_eth_soc.c | 23 +
drivers/net/ethernet/mediatek/mtk_eth_soc.h | 3 +
drivers/net/ethernet/mediatek/mtk_ppe.c | 18 +
drivers/net/ethernet/mediatek/mtk_ppe.h | 14 +-
.../net/ethernet/mediatek/mtk_ppe_offload.c | 67 +-
drivers/net/ethernet/mediatek/mtk_wed.c | 837 ++++++++++++++++++
drivers/net/ethernet/mediatek/mtk_wed.h | 123 +++
.../net/ethernet/mediatek/mtk_wed_debugfs.c | 175 ++++
drivers/net/ethernet/mediatek/mtk_wed_ops.c | 8 +
drivers/net/ethernet/mediatek/mtk_wed_regs.h | 248 ++++++
drivers/net/wireless/mediatek/mt76/dma.c | 111 ++-
drivers/net/wireless/mediatek/mt76/mac80211.c | 5 +-
drivers/net/wireless/mediatek/mt76/mmio.c | 9 +-
drivers/net/wireless/mediatek/mt76/mt76.h | 36 +-
.../net/wireless/mediatek/mt76/mt7603/dma.c | 8 +-
.../net/wireless/mediatek/mt76/mt7615/dma.c | 6 +-
.../net/wireless/mediatek/mt76/mt76x02_mmio.c | 4 +-
.../net/wireless/mediatek/mt76/mt7915/dma.c | 38 +-
.../net/wireless/mediatek/mt76/mt7915/mac.c | 123 ++-
.../net/wireless/mediatek/mt76/mt7915/mac.h | 2 +
.../net/wireless/mediatek/mt76/mt7915/main.c | 32 +
.../net/wireless/mediatek/mt76/mt7915/mcu.c | 4 +
.../net/wireless/mediatek/mt76/mt7915/mmio.c | 2 +-
.../wireless/mediatek/mt76/mt7915/mt7915.h | 3 +-
.../net/wireless/mediatek/mt76/mt7915/pci.c | 98 +-
.../net/wireless/mediatek/mt76/mt7915/regs.h | 19 +-
.../net/wireless/mediatek/mt76/mt7921/dma.c | 2 +-
drivers/net/wireless/mediatek/mt76/tx.c | 21 +-
include/linux/netdevice.h | 7 +
include/linux/soc/mediatek/mtk_wed.h | 127 +++
include/net/mac80211.h | 5 +
net/core/dev.c | 4 +
net/mac80211/driver-ops.h | 22 +
net/mac80211/ieee80211_i.h | 2 +-
net/mac80211/iface.c | 58 ++
net/mac80211/trace.h | 7 +
39 files changed, 2187 insertions(+), 115 deletions(-)
create mode 100644 drivers/net/ethernet/mediatek/mtk_wed.c
create mode 100644 drivers/net/ethernet/mediatek/mtk_wed.h
create mode 100644 drivers/net/ethernet/mediatek/mtk_wed_debugfs.c
create mode 100644 drivers/net/ethernet/mediatek/mtk_wed_ops.c
create mode 100644 drivers/net/ethernet/mediatek/mtk_wed_regs.h
create mode 100644 include/linux/soc/mediatek/mtk_wed.h
--
2.30.1
Powered by blists - more mailing lists