]> git.ipfire.org Git - people/ms/u-boot.git/commit - net/bootp.c
net: bootp: Add environment variable for timeout period
authorAlexandre Messier <amessier@tycoint.com>
Mon, 1 Feb 2016 22:08:57 +0000 (17:08 -0500)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 26 Feb 2016 19:37:38 +0000 (13:37 -0600)
commit50768f5b06e7704cf2bc209f89e250130c3fff5b
tree78d4f566336406bca9e57f571edbd4a69367a762
parent903d384d401bdfc517266787549caf4630a7f305
net: bootp: Add environment variable for timeout period

There is currently one config option (CONFIG_NET_RETRY_COUNT) that
is available to tune the retries of the network stack.
Unfortunately, it is global to all protocols, and the value is
interpreted differently in all of them.

Add a new environment variable that directly sets the retry period for
BOOTP timeouts. If this new value is not set, the period is still derived
from the default number of retries, or from CONFIG_NET_RETRY_COUNT if
defined. When both the new variable is set and CONFIG_NET_RETRY_COUNT
is defined, the variable has precedence.

Signed-off-by: Alexandre Messier <amessier@tycoint.com>
README
net/bootp.c