ramips: improve ethernet driver performance with GRO/TSO
authorFelix Fietkau <nbd@nbd.name>
Wed, 6 Jun 2018 07:56:13 +0000 (09:56 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 19 Jun 2018 07:45:28 +0000 (09:45 +0200)
commit9a4253b81f3b3fff833ef92737ef73ad4c455ade
tree9e97618bb14dcbab0b64d2a6ebcd893e1ed4fb29
parentc49ae68cbaf078a3dacaebf453d9e7ece2e861f5
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>
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