Browse Source

[PATCH] 3c59x: decrease polling interval

Set the polling interval for media changes to 5 seconds if link is down and
60 seconds if link is up.

Signed-off-by: Steffen Klassert <klassert@mathematik.tu-chemnitz.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Steffen Klassert 19 years ago
parent
commit
b4ff6450f5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      drivers/net/3c59x.c

+ 4 - 0
drivers/net/3c59x.c

@@ -1943,6 +1943,10 @@ vortex_timer(unsigned long data)
 				 dev->name, media_tbl[dev->if_port].name, media_status);
 				 dev->name, media_tbl[dev->if_port].name, media_status);
 		ok = 1;
 		ok = 1;
 	}
 	}
+
+	if (!netif_carrier_ok(dev))
+		next_tick = 5*HZ;
+
 	if ( ! ok) {
 	if ( ! ok) {
 		unsigned int config;
 		unsigned int config;