netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: davem@redhat.com
Cc: netdev@oss.sgi.com
Subject: [PATCH] Force IPv6 FIB gc on device shutdown
Date: Fri, 9 Apr 2004 17:39:01 +0200	[thread overview]
Message-ID: <20040409173901.62ebf75b.ak@suse.de> (raw)


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

             reply	other threads:[~2004-04-09 15:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-09 15:39 Andi Kleen [this message]
2004-04-09 22:31 ` [PATCH] Force IPv6 FIB gc on device shutdown David S. Miller

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=20040409173901.62ebf75b.ak@suse.de \
    --to=ak@suse.de \
    --cc=davem@redhat.com \
    --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).