| To: | davem@xxxxxxxxxx |
|---|---|
| Subject: | [PATCH] Force IPv6 FIB gc on device shutdown |
| From: | Andi Kleen <ak@xxxxxxx> |
| Date: | Fri, 9 Apr 2004 17:39:01 +0200 |
| Cc: | netdev@xxxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
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;
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] Do lazy gettimeofday for network packets, Andi Kleen |
|---|---|
| Next by Date: | [PATCH] NETDEBUG network triggerable messages in IPv6, Andi Kleen |
| Previous by Thread: | [PATCH] Do lazy gettimeofday for network packets, Andi Kleen |
| Next by Thread: | Re: [PATCH] Force IPv6 FIB gc on device shutdown, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |