]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mediatek: enhance RX path by reducing the frequency of the memory...
authorSean Wang <sean.wang@mediatek.com>
Sat, 3 Sep 2016 09:59:26 +0000 (17:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Sep 2016 20:33:19 +0000 (13:33 -0700)
commit5761fcac8850430883edc7d4541c53ee7bd052ea
treea3d3c6e224eff2a0525f4d8177791c925f71eccb
parent78fb1327c695d0f610d75dfd54f3a2f102853206
net: ethernet: mediatek: enhance RX path by reducing the frequency of the memory barrier used

The patch makes move wmb() to outside the loop that could help
RX path handling more faster although that RX descriptors aren't
freed for DMA to use as soon as possible, but based on my experiment
and the result shows it still can reach about 943Mbpis without
performance drop that is tested based on the setup with one port
using Giga PHY and 256 RX descriptors for DMA to move.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c