[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20131121.141813.302653702167603709.davem@davemloft.net>
Date: Thu, 21 Nov 2013 14:18:13 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: steffen.klassert@...unet.com
Cc: David.Laight@...LAB.COM, yoshfuji@...ux-ipv6.org,
netdev@...r.kernel.org
Subject: Re: [PATCH net] neigh: Force garbage collection if an entry is
deleted administratively
From: Steffen Klassert <steffen.klassert@...unet.com>
Date: Tue, 19 Nov 2013 13:41:02 +0100
> We have the table locked in neigh_periodic_work() so we can unlink
> invalidated entries there. This function could then periodically
> check and remove the unlinked entries if they lost their references.
> Unlinking with neigh_periodic_work() would have some seconds delay
> of course, but I think this is acceptable.
Create an "invalidated_list", and at the moment the neigh is
administratively deleted you can remove it from the hash table and
link it into this new list.
Then neigh_periodic_work() can scan both the hash tables and this
"invalidated_list" for refcnt==1 entries.
It seems a good solution, and should avoid the need to handle
forcibly freeing a neigh which still has external references.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists