OSDN Git Service

net: ethernet: mtk_eth_soc: add support for coherent DMA
authorFelix Fietkau <nbd@nbd.name>
Tue, 5 Apr 2022 19:57:43 +0000 (21:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Apr 2022 13:08:48 +0000 (14:08 +0100)
commitd776a57e4a284b33bc839687afe9c381f3577eee
tree662f83c9ed0ab9f57b75e505f8cf263a5606ac99
parent1dafd0d607032ac3cdb7f6298342b93b9dc7b3e1
net: ethernet: mtk_eth_soc: add support for coherent DMA

It improves performance by eliminating the need for a cache flush on rx and tx
In preparation for supporting WED (Wireless Ethernet Dispatch), also add a
function for disabling coherent DMA at runtime.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h