netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Force IPv6 FIB gc on device shutdown
@ 2004-04-09 15:39 Andi Kleen
  2004-04-09 22:31 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Andi Kleen @ 2004-04-09 15:39 UTC (permalink / raw)
  To: davem; +Cc: netdev


A few people reported problems with shutdown complaining about lost reference
counts in network devices. The problem was that the IPv6 FIB kept some
device references around and only dropped it on the next GC timer run, which
happens only every 10s.

This patch forces a garbage collection on device shutdown.

-Andi

diff -u linux/net/ipv6/ndisc.c-o linux/net/ipv6/ndisc.c
--- linux/net/ipv6/ndisc.c-o	2004-04-04 23:35:36.000000000 +0200
+++ linux/net/ipv6/ndisc.c	2004-04-05 15:11:07.000000000 +0200
@@ -1564,6 +1564,9 @@
 		neigh_changeaddr(&nd_tbl, dev);
 		fib6_run_gc(0);
 		break;
+	case NETDEV_UNREGISTER:
+		fib6_run_gc(0);
+		break;
 	default:
 		break;
 	}

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-04-09 22:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-09 15:39 [PATCH] Force IPv6 FIB gc on device shutdown Andi Kleen
2004-04-09 22:31 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).