]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv4: increase dhcp inter device timeout
authorMugunthan V N <mugunthanvnm@ti.com>
Wed, 12 Aug 2015 10:01:43 +0000 (15:31 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Aug 2015 23:40:22 +0000 (16:40 -0700)
commit61964841ab1e38bf35f55ce8790950738b31b0d5
tree63d37ba6bb8d0b1ff8c58a81d5ec27c1720bbc15
parent43b7155469f487888cfc9208a00310cd12bf3d5c
net: ipv4: increase dhcp inter device timeout

When a system has multiple ethernet devices and during DHCP
request (for using NFS), the system waits only for HZ/2 which is
500mS before switching to another interface for DHCP.

There are some routers (Ex: Trendnet routers) which responds to
DHCP request at about 560mS. When the system has only one
ethernet interface there is no issue as the timeout is 2S and the
dev xid doesn't changes and only retries.

But when the system has multiple Ethernet like DRA74x with CPSW
in dual EMAC mode, the DHCP response is dropped as the dev xid
changes while shifting to the next device. So changing inter
device timeout to HZ (which is 1S).

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipconfig.c