net: ethernet: mtk_eth_soc: only read the full RX descriptor if DMA is done
authorFelix Fietkau <nbd@nbd.name>
Fri, 23 Apr 2021 05:21:04 +0000 (22:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Apr 2021 20:31:58 +0000 (13:31 -0700)
commit816ac3e6e67bdd78d86226c6eb53619780750e92
tree3441f3df81b388b4c299cc7ed8dde468788f9983
parent4e6bf609569c59b6bd6acf4a607c096cbd820d79
net: ethernet: mtk_eth_soc: only read the full RX descriptor if DMA is done

Uncached memory access is expensive, and there is no need to access all
descriptor words if we can't process them anyway

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c