|
@@ -689,8 +689,6 @@ static void neigh_destroy_rcu(struct rcu_head *head)
|
|
*/
|
|
*/
|
|
void neigh_destroy(struct neighbour *neigh)
|
|
void neigh_destroy(struct neighbour *neigh)
|
|
{
|
|
{
|
|
- struct hh_cache *hh;
|
|
|
|
-
|
|
|
|
NEIGH_CACHE_STAT_INC(neigh->tbl, destroys);
|
|
NEIGH_CACHE_STAT_INC(neigh->tbl, destroys);
|
|
|
|
|
|
if (!neigh->dead) {
|
|
if (!neigh->dead) {
|
|
@@ -703,13 +701,6 @@ void neigh_destroy(struct neighbour *neigh)
|
|
if (neigh_del_timer(neigh))
|
|
if (neigh_del_timer(neigh))
|
|
printk(KERN_WARNING "Impossible event.\n");
|
|
printk(KERN_WARNING "Impossible event.\n");
|
|
|
|
|
|
- hh = &neigh->hh;
|
|
|
|
- if (hh->hh_len) {
|
|
|
|
- write_seqlock_bh(&hh->hh_lock);
|
|
|
|
- hh->hh_output = neigh_blackhole;
|
|
|
|
- write_sequnlock_bh(&hh->hh_lock);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
skb_queue_purge(&neigh->arp_queue);
|
|
skb_queue_purge(&neigh->arp_queue);
|
|
|
|
|
|
dev_put(neigh->dev);
|
|
dev_put(neigh->dev);
|