From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Tue, 25 Aug 2009 13:31:47 -0700 Subject: [U-Boot] [PATCH] Add Transfer Size Option to tftp In-Reply-To: <1250779820-15732-1-git-send-email-rgetz@blackfin.uclinux.org> References: <1250779820-15732-1-git-send-email-rgetz@blackfin.uclinux.org> Message-ID: <4A944A33.6070304@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Robin Getz wrote: > Optionally add RFC 2349 "Transfer Size Option", so we can minimize the > time spent sending data over the UART (now print a single line during a > tftp transfer). > > - If turned on (CONFIG_TFTP_TSIZE), U-Boot asks for the size of the file. > - if receives the file size, a single line (50 chars) are printed. > one hash mark == 2% of the file downloaded. > - if it doesn't receive the file size (the server doesn't support RFC > 2349, prints standard hash marks (one mark for each UDP frame). > > Signed-off-by: Robin Getz > --- > net/tftp.c | 42 ++++++++++++++++++++++++++++++++++++++++-- > 1 files changed, 40 insertions(+), 2 deletions(-) > Applied to net/next regards, Ben