[PATCH v2] net: tftpboot: clear timeout_count on every successful block

Tom Rini trini at konsulko.com
Wed Jan 1 21:41:35 CET 2025


On Wed, 01 Jan 2025 06:20:16 +0300, Mikhail Kshevetskiy wrote:

> We have a some boards that rarely starts networking abnormally, so there are
> many timeouts during file transfer. In the same time there is a normal transfer
> between timeouts. In this case we can continue transfer (instead of connection
> aborting) by just clearing timeout counter on every successfull block.
> 
> This patch does not affect the case when several timeouts happen one after
> another. The transfer will be aborted. Thus the transfer will be
> continued in the case of unstable link, but will be aborted in the case
> of inaccessible server.
> 
> [...]

Applied to u-boot/next, thanks!

-- 
Tom




More information about the U-Boot mailing list