u-boot-2016/net
Max Krummenacher 7628afebe9 tftp.c: fix CONFIG_TFTP_TSIZE for small files
CONFIG_TFTP_TSIZE should limit a tftp downloads progress to 50 '#'
chars. Make this work also for small files.

If the file size is small, i.e. smaller than 2 tftp block sizes the
number of '#' can get much larger. i.e. with a 1 byte file 65000
characters are printed, with a 512 byte file around 500.

When using CONFIG TFTP BLOCKSIZE together with CONFIG_IP_DEFRAG the
issue is more notable.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2015-08-12 14:15:28 -05:00
..
arp.c
arp.h
bootp.c
bootp.h
cdp.c
cdp.h
checksum.c
dns.c
dns.h
eth.c
Kconfig
link_local.c
link_local.h
Makefile
net.c
net_rand.h
nfs.c
nfs.h
ping.c
ping.h
rarp.c
rarp.h
sntp.c
sntp.h
tftp.c tftp.c: fix CONFIG_TFTP_TSIZE for small files 2015-08-12 14:15:28 -05:00
tftp.h