ramips: improve ethernet driver performance with GRO/TSO
authorFelix Fietkau <nbd@nbd.name>
Wed, 6 Jun 2018 07:56:13 +0000 (09:56 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 16:32:19 +0000 (17:32 +0100)
commitcf38f7c7fbf30c53d6ec98632729324ba10a098d
treef54e5fc7c75890efa6f6718f0c4a2d8a02d27e34
parent709c60c4411edfb29ce753de29f3d9e46f045b33
ramips: improve ethernet driver performance with GRO/TSO

GRO stores packets as fraglist. If they are routed back to the ethernet
device, they need to be re-segmented if the driver does not support
sending fraglists.
Add the missing support for that, along with a missing feature flag that
allows full routed GRO->TSO offload.
Considerably reduces CPU utilization for routing

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from 9a4253b81f3b3fff833ef92737ef73ad4c455ade)
target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c
target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.h
target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/soc_mt7621.c