| To: | netdev@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH] Force IPv6 garbage collection on device down |
| From: | Andi Kleen <ak@xxxxxx> |
| Date: | Mon, 05 Apr 2004 17:53:09 +0200 |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux) |
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;
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] eliminate divert_blk message, Olaf Kirch |
|---|---|
| Next by Date: | Re: Luca Deri's paper: Improving Passive Packet Capture: Beyond Device Polling, Jason Lunz |
| Previous by Thread: | [PATCH] eliminate divert_blk message, Olaf Kirch |
| Next by Thread: | [PATCH] 2.4, 2.6 patchset for fealnx.c, Denis Vlasenko |
| Indexes: | [Date] [Thread] [Top] [All Lists] |