ramips: implement hardware NAT offload for MT7621
authorJohn Crispin <john@phrozen.org>
Fri, 23 Mar 2018 12:42:56 +0000 (13:42 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 6 Apr 2018 17:37:53 +0000 (19:37 +0200)
commit424a9ae128bd2045cd4bfd6e3229f2529d150a25
tree2d82652a341a08c3edb660893c20315d5cafc41e
parentdea9922acd290b37a784d354892a44684a8fb696
ramips: implement hardware NAT offload for MT7621

Supports IPv4 flow offloading on MT7621 for Routing, SNAT and DNAT

Supported are regular ethernet->ethernet connections, including one
802.1q VLAN and/or PPPoE encapsulation

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/ramips/dts/mt7621.dtsi
target/linux/ramips/files-4.14/drivers/net/ethernet/mtk/Kconfig
target/linux/ramips/files-4.14/drivers/net/ethernet/mtk/Makefile
target/linux/ramips/files-4.14/drivers/net/ethernet/mtk/mtk_debugfs.c [new file with mode: 0644]
target/linux/ramips/files-4.14/drivers/net/ethernet/mtk/mtk_eth_soc.c
target/linux/ramips/files-4.14/drivers/net/ethernet/mtk/mtk_eth_soc.h
target/linux/ramips/files-4.14/drivers/net/ethernet/mtk/mtk_offload.c [new file with mode: 0644]
target/linux/ramips/files-4.14/drivers/net/ethernet/mtk/mtk_offload.h [new file with mode: 0644]