diff options
| author | Luca Jones <[email protected]> | 2026-08-11 10:25:57 -0700 |
|---|---|---|
| committer | Jerome Forissier <[email protected]> | 2026-08-12 14:23:14 +0200 |
| commit | 5eb45fb2917c7d46282cd6dd6e05d41b84f67105 (patch) | |
| tree | e2496c3d47b6440c63d83e6d5c66d27336d828ff /include | |
| parent | a1aaacc968ae995b7557a316907c2e2f073b1a17 (diff) | |
net: lwip: dhcp: fix DHCP fine timer interval
dhcp_fine_tmr() was called every 10ms, but lwIP expects it to be
called every DHCP_FINE_TIMER_MSECS (500ms).
Since the fine timer ticks are currently 50 times faster than lwIP
expects, the client burns through the bounded exponential backoff
sequence for the DHCPREQUEST messages in 2.44 seconds rather than 122
seconds, after which it uses a new xid and returns to sending
DHCPDISCOVER messages. If there is enough latency in the server, the
client could receive an ACK response within DHCP_TIMEOUT_MS (10
seconds), but reject it because it has already moved on with another
xid after 2.44 seconds.
We have seen this occur with our boards. When our rack of 16 boards
get powered on together, they all request for an address from the
network switch's DHCP server in near lock-step and we see that only a
few of the boards actually obtain a lease. Fixing the timing to 500ms
allowed all of the boards to obtain a lease consistently.
Fixes: 98ad145db61a ("net: lwip: add DHCP support and dhcp commmand")
Signed-off-by: Luca Jones <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
