u-boot-brain/drivers/net
Stefan Roese 5a834c1f9e net: cpsw: am335x: Drop constant link checking from rx/tx path's
We noticed on the DXR2 platform (AM335x with a SMSC LAN9303 switch connected
to the CPSW MAC) that the network performance in U-Boot is quite poor. Only
when the transfer is started without a cable connected, and the cable is
plugged after the first timeout "T" occured, an increased in performance
can be seen. Debugging has revealed, that the cpsw driver has constant
link checking builtin into the rx and tx functions. This results in the
bad performance and seems to be unnecessary. The link has already been
checked in the init function, before the transfer is started. This usually
is sufficient.

BTW: I have seen no other network driver in U-Boot so far, that constantly
checks for link in the rx / tx functions.

The performance numbers on the DXR2 board are:

0.56 MiB/s	cpsw_check_link() in rx and tx path
0.87 MiB/s	cpsw_check_link() only in tx path
1.0  MiB/s	cpsw_check_link() only in rx path
2.7  MiB/s	no cpsw_check_link() in rx and tx path

So with this patch the network performance on DXR2 increases from 0.56
to 2.7 MiB/s (nearly 5 times as fast).

Signed-off-by: Stefan Roese <sr@denx.de>
Tested-by: Samuel Egli <samuel.egli@siemens.com>
Tested-by: Heiko Schocher <hs@denx.de>
Cc: Vladimir Koutny <vladimir.koutny@streamunlimited.com>
Cc: Mugunthan V N <mugunthanvnm@ti.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Cc: Tom Rini <trini@ti.com>
2014-08-28 17:18:49 -04:00
..
fm powerpc/T4240QDS/eth: some fix for XFI 2014-08-20 10:44:16 -07:00
fsl_mc armv8/fsl-lsch3: Add support to load and start MC Firmware 2014-07-03 08:40:58 +02:00
phy drivers: net: remove dead drivers 2014-08-21 12:01:11 -04:00
4xx_enet.c SPDX: fix IBM-pibs license identifier 2013-09-20 10:30:54 -04:00
8390.h drivers/net : move net drivers to drivers/net 2007-11-25 18:35:17 +01:00
altera_tse.c net: Fix remaining API interface breakage 2012-05-23 14:19:21 -05:00
altera_tse.h miiphy: convert to linux/mii.h 2011-01-09 18:06:50 +01:00
armada100_fec.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
armada100_fec.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
at91_emac.c net: remove unused CONFIG_AT91_LEGACY 2013-11-13 22:13:32 +01:00
ax88180.c net: Use ARRAY_SIZE at appropriate places 2013-08-19 12:34:18 -05:00
ax88180.h AX88180: use standard I/O accessors 2010-07-12 00:14:29 -07:00
ax88796.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ax88796.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
bfin_mac.c blackfin: Add <asm/clock.h> to numerous drivers 2014-02-20 12:00:27 -05:00
bfin_mac.h net: Fix remaining API interface breakage 2012-05-23 14:19:21 -05:00
calxedaxgmac.c Merge branch 'u-boot/master' into u-boot-arm/master 2013-07-25 17:57:46 +02:00
cpsw.c net: cpsw: am335x: Drop constant link checking from rx/tx path's 2014-08-28 17:18:49 -04:00
cs8900.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cs8900.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
davinci_emac.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
davinci_emac.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
dc2114x.c Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
designware.c net/designware: Make DMA burst length configurable and reduce by default 2014-05-25 17:23:58 +02:00
designware.h net/designware: Make DMA burst length configurable and reduce by default 2014-05-25 17:23:58 +02:00
dm9000x.c net: rename and refactor eth_rand_ethaddr() function 2014-05-12 15:19:46 -04:00
dm9000x.h dm9000 remove dead external phy support, gpio fix 2008-08-26 23:08:19 -07:00
dnet.c drivers/net/dnet.c: Fix compile warning 2012-05-22 10:18:15 -05:00
dnet.h dnet: driver for Dave DNET ethernet controller 2009-02-10 00:16:27 +01:00
e1000_spi.c Consolidate bool type 2013-04-01 16:33:52 -04:00
e1000.c e1000: add i210 support 2014-08-21 12:01:28 -04:00
e1000.h e1000: add i210 support 2014-08-21 12:01:28 -04:00
eepro100.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
enc28j60.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
enc28j60.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ep93xx_eth.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ep93xx_eth.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ethoc.c net: Fix remaining API interface breakage 2012-05-23 14:19:21 -05:00
fec_mxc.c NET: fec_mxc: fix MDIO clock prescaler calculation 2014-02-11 11:33:45 +01:00
fec_mxc.h net: fec_mxc: Add support for mx6 solo-lite 2013-09-20 17:55:36 +02:00
fsl_mcdmafec.c net: Use ARRAY_SIZE at appropriate places 2013-08-19 12:34:18 -05:00
fsl_mdio.c net: fsl_mdio: Fix warnings for __iomem pointers 2013-11-22 17:03:15 -06:00
ftgmac100.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ftgmac100.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ftmac100.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ftmac100.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ftmac110.c net: rename and refactor eth_rand_ethaddr() function 2014-05-12 15:19:46 -04:00
ftmac110.h net: ftmac110: Update tx/rx descriptor format 2013-08-19 12:34:21 -05:00
greth.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
greth.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
keystone_net.c keystone2: net: add keystone ethernet driver 2014-04-17 17:24:39 -04:00
ks8695eth.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ks8851_mll.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ks8851_mll.h net: ks8851_mll: add ethernet support 2013-06-24 19:11:14 -05:00
lan91c96.c net: Use ARRAY_SIZE at appropriate places 2013-08-19 12:34:18 -05:00
lan91c96.h arm: remove lubbock board support 2014-04-18 10:42:30 -04:00
macb.c net: macb: enable dcache in macb 2014-06-14 18:07:01 +02:00
macb.h net: macb: get DMA bus width from design config register 2013-11-04 20:32:31 +01:00
Makefile drivers: net: remove dead drivers 2014-08-21 12:01:11 -04:00
mcffec.c net: Use ARRAY_SIZE at appropriate places 2013-08-19 12:34:18 -05:00
mcfmii.c net: Use ARRAY_SIZE at appropriate places 2013-08-19 12:34:18 -05:00
mpc5xxx_fec.c ppc: Move mpc5xxx clocks to arch_global_data 2013-02-04 09:05:43 -05:00
mpc5xxx_fec.h Move MPC5xxx_FEC driver to drivers/net 2008-08-29 13:58:07 -06:00
mpc512x_fec.c ppc: Move mpc512x clocks to arch_global_data 2013-02-04 09:05:43 -05:00
mpc512x_fec.h MPC512x: remove include/mpc512x.h 2009-06-12 20:47:16 +02:00
mvgbe.c NET: mvgbe: avoid unused variable warning when used without phylib support 2013-11-22 16:50:34 -06:00
mvgbe.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
natsemi.c drivers/net/natsemi.c: Fix compile warning 2012-05-22 13:41:47 -05:00
ne2000_base.c net: Fix remaining API interface breakage 2012-05-23 14:19:21 -05:00
ne2000_base.h Consolidate bool type 2013-04-01 16:33:52 -04:00
ne2000.c net: Use ARRAY_SIZE at appropriate places 2013-08-19 12:34:18 -05:00
ne2000.h NE2000: Fix regresssion introduced by e710185aae on non AX88796 2008-04-28 22:26:36 -07:00
netconsole.c stdio: Pass device pointer to stdio methods 2014-07-23 14:07:23 +01:00
ns8382x.c drivers/net/ns8382x.c: Fix compile warning 2012-05-22 13:41:47 -05:00
pcnet.c pcnet: force ordering of descriptor accesses 2014-04-18 10:42:30 -04:00
rtl8139.c net: Fix mcast function pointer prototype 2013-11-22 16:57:13 -06:00
rtl8169.c net: rtl8169: Add support for RTL8168d/8111d 2013-11-22 17:03:21 -06:00
sh_eth.c net: sh-eth: Add support R8A7794 2014-07-24 14:03:46 +09:00
sh_eth.h net: sh-eth: Add support R8A7794 2014-07-24 14:03:46 +09:00
smc911x.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
smc911x.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
smc91111.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
smc91111.h SMC91111: Fix compilation warnings 2014-02-21 11:33:18 -05:00
sunxi_emac.c net: Rename and cleanup sunxi (Allwinner) emac driver 2014-07-06 20:12:44 +01:00
tsec.c net: tsec: Fix mac addr setup portability, cleanup 2013-11-22 17:03:17 -06:00
tsi108_eth.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
uli526x.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
vsc7385.c drivers/net/: sparse fixes 2012-11-04 11:00:36 -07:00
xilinx_axi_emac.c net: axi_emac: Check if phy was correctly detected 2014-02-04 16:42:45 +01:00
xilinx_emaclite.c net: emaclite: Fix OF initialization 2014-03-04 09:27:32 -05:00
xilinx_ll_temac_fifo.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac_fifo.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac_mdio.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac_mdio.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac_sdma.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac_sdma.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
xilinx_ll_temac.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
zynq_gem.c net: zynq: Fix sparse warnings in gem 2014-05-06 13:41:55 +02:00