]> 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)
commit48fa4a733171c13bb951b7aa21f63a0bb732f1c3
treea3d3c6e224eff2a0525f4d8177791c925f71eccb
parent0a1a64efa2654fda7e7a22b143be6ae0b65c27c5
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