]> 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)
commitd24ec40fd0b796fa352bdc0e0b0cbfa970bfddbe
tree3441f3df81b388b4c299cc7ed8dde468788f9983
parente2fdbd60ad874a54b86fedfaf68d778fac16ac15
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