[U-Boot] [PATCH] net: Fix delay in net_retry test

Simon Glass sjg at chromium.org
Thu Jan 7 17:32:19 CET 2016


On 21 December 2015 at 15:31, Joe Hershberger <joe.hershberger at ni.com> wrote:
> Introduced in 45b4773 (net/arp: account for ARP delay, avoid duplicate packets on timeout)
>
> Check the arp timeout and adjust the timeout start time before the call
> to eth_recv() so that the sandbox driver has the opportunity to adjust
> the sandbox timer after the new start time has been recorded.
>
> Also, change the adjustment amount by 11 seconds instead of exactly the
> 10 seconds that the ping timout is expecting since the timeout check is
> looking for the time elapsed to be greater than but not equal to the
> specified delay.
>
> Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
>
> ---
>
>  drivers/net/sandbox.c | 2 +-
>  net/net.c             | 7 +++----
>  2 files changed, 4 insertions(+), 5 deletions(-)

Acked-by: Simon Glass <sjg at chromium.org>

I'm planning to pick this up for the release. Please let me know if
you have any concerns.

- Simon


More information about the U-Boot mailing list