]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit84887e16fed181448ae3e2956f219f424df5a03a
tree3441f3df81b388b4c299cc7ed8dde468788f9983
parentec6b8a020a336d195b3e8580ff805f5d194c4e17
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