From c807ad918c7c61a8af3fcc930cc2a5ad4c978ea1 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 21 Jan 2009 11:17:58 +0100 Subject: [PATCH] increase netif renaming timeout from 30 to 90 seconds --- udev/udev-event.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/udev/udev-event.c b/udev/udev-event.c index 4b00cab3..e34f09cf 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); } } -- 2.39.5