u-boot/net
Leonid Iziumtsev 17d413b253 net: Fix netretry condition
The "net_try_count" counter starts from "1".
And the "retrycnt" contains requested amount of retries.

With current logic, that means that the actual retry amount
will be one time less then what we set in "netretry" env.
For example setting "netretry" to "once" will make "retrycnt"
equal "1", so no retries will be triggered at all.

Fix the logic by changing the statement of "if" condition.

Signed-off-by: Leonid Iziumtsev <leonid.iziumtsev@se.atlascopco.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2018-03-22 15:05:31 -05:00
..
arp.c env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
arp.h net/arp: account for ARP delay, avoid duplicate packets on timeout 2015-10-28 14:57:37 -05:00
bootp.c net: dhcp: Allow "MAY_FAIL" to still try each adapter 2018-01-15 12:05:23 -06:00
bootp.h net: Use packed structures for networking 2017-08-07 15:18:31 -05:00
cdp.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
cdp.h net: cosmetic: Clean up CDP variables and functions 2015-04-18 11:11:34 -06:00
checksum.c net: Add a separate file for IP checksumming 2015-01-23 21:44:59 -07:00
dns.c env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
dns.h net: Use packed structures for networking 2017-08-07 15:18:31 -05:00
eth_common.c env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr() 2017-08-16 08:30:44 -04:00
eth_internal.h env: Rename eth_setenv_enetaddr() to eth_env_set_enetaddr() 2017-08-16 08:23:56 -04:00
eth_legacy.c env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr() 2017-08-16 08:30:44 -04:00
eth-uclass.c env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr() 2017-08-16 08:30:44 -04:00
Kconfig Kconfig: cmd: Make networking command dependent on NET 2018-02-27 16:25:30 -05:00
link_local.c env: Rename some other getenv()-related functions 2017-08-16 08:31:11 -04:00
link_local.h net: Add link-local addressing support 2012-05-23 17:53:08 -05:00
Makefile net: Disable the format-extra-args warning 2017-05-12 08:37:40 -04:00
net_rand.h net: Get mac address from driver as seed 2017-08-07 15:18:28 -05:00
net.c net: Fix netretry condition 2018-03-22 15:05:31 -05:00
nfs.c Revert "net: nfs: Use the tx buffer to construct rpc msgs" 2016-09-09 13:13:41 -05:00
nfs.h net: nfs: Drop CONFIG_NFS_READ_SIZE 2017-09-07 13:23:52 -05:00
ping.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
ping.h SPDX License cleanup for LiMon imported files 2014-10-10 09:44:43 -04:00
rarp.c net: tftp: Move tftp.h file from ./net to ./include/net 2015-09-07 13:41:04 +02:00
rarp.h net: cosmetic: Clean up RARP variables and functions 2015-04-18 11:11:33 -06:00
sntp.c dm: net: rtc: Support using driver model for rtc in sntp 2015-05-05 20:58:40 -06:00
sntp.h net: Use packed structures for networking 2017-08-07 15:18:31 -05:00
tftp.c net/tftp: fix build if CMD_BOOTEFI is not set 2017-09-22 07:40:05 -04:00