diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-01-21 11:17:58 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-01-21 11:17:58 +0100 |
commit | c807ad918c7c61a8af3fcc930cc2a5ad4c978ea1 (patch) | |
tree | 2ed4a0b6ab51f430962233c980871f4d1f7c11f5 /udev | |
parent | d1cc6562f3b8fb17d061aa37aedd40163dd714e5 (diff) |
increase netif renaming timeout from 30 to 90 seconds
Diffstat (limited to 'udev')
-rw-r--r-- | udev/udev-event.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/udev/udev-event.c b/udev/udev-event.c index 4b00cab30d..e34f09cfe3 100644 --- a/udev/udev-event.c +++ b/udev/udev-event.c @@ -505,10 +505,10 @@ static int rename_netif(struct udev_event *event) goto exit; } - /* wait 30 seconds for our target to become available */ + /* wait 90 seconds for our target to become available */ util_strlcpy(ifr.ifr_name, ifr.ifr_newname, IFNAMSIZ); util_strlcpy(ifr.ifr_newname, event->name, IFNAMSIZ); - loop = 30 * 20; + loop = 90 * 20; while (loop--) { err = ioctl(sk, SIOCSIFNAME, &ifr); if (err == 0) { @@ -522,7 +522,7 @@ static int rename_netif(struct udev_event *event) break; } dbg(event->udev, "wait for netif '%s' to become free, loop=%i\n", - event->name, (30 * 20) - loop); + event->name, (90 * 20) - loop); usleep(1000 * 1000 / 20); } } |