netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andi Kleen <ak@muc.de>
To: netdev@oss.sgi.com
Subject: [PATCH] Force IPv6 garbage collection on device down
Date: Mon, 05 Apr 2004 17:53:09 +0200	[thread overview]
Message-ID: <m3brm68lqy.fsf@averell.firstfloor.org> (raw)


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;
 	}

                 reply	other threads:[~2004-04-05 15:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3brm68lqy.fsf@averell.firstfloor.org \
    --to=ak@muc.de \
    --cc=netdev@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).