netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Force IPv6 garbage collection on device down
@ 2004-04-05 15:53 Andi Kleen
  0 siblings, 0 replies; only message in thread
From: Andi Kleen @ 2004-04-05 15:53 UTC (permalink / raw)
  To: netdev


We had some problems with devices occasionally hanging with non zero
reference count on device destroy until the next time the IPv6 garbage
collection timer ran (upto 10s). 

To avoid that this patch forces an IPv6 FIB garbage collection
on device down.

-Andi

diff -u linux-2.6.5/net/ipv6/ndisc.c-N linux-2.6.5/net/ipv6/ndisc.c
--- linux-2.6.5/net/ipv6/ndisc.c-N	1970-01-01 01:12:51.000000000 +0100
+++ linux-2.6.5/net/ipv6/ndisc.c	2004-04-05 17:50:52.000000000 +0200
@@ -1403,6 +1403,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] only message in thread

only message in thread, other threads:[~2004-04-05 15:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-05 15:53 [PATCH] Force IPv6 garbage collection on device down Andi Kleen

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).