netdev
[Top] [All Lists]

Re: Fw: unregister_netdevice(): negative refcnt, suggest patch against 2

To: Felix Palmen <fmp@xxxxxxxxxxxxxxxxx>
Subject: Re: Fw: unregister_netdevice(): negative refcnt, suggest patch against 2.6.11
From: Thomas Graf <tgraf@xxxxxxx>
Date: Mon, 11 Apr 2005 14:51:13 +0200
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20050411023038.GB13829@xxxxxxxxxxxxxxxxx>
References: <20050410034446.39e3025e.akpm@xxxxxxxx> <20050410212727.GA13829@xxxxxxxxxxxxxxxxx> <20050410215050.GJ26731@xxxxxxxxxxxxxx> <20050411023038.GB13829@xxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
* Felix Palmen <20050411023038.GB13829@xxxxxxxxxxxxxxxxx> 2005-04-11 04:30
> * Thomas Graf <tgraf@xxxxxxx> [20050410 23:50]:
> > Is it always 256? Do you have any appletalk routes configured?
> > If so, is the 256 dependand on the number of routes?
> 
> That could really be the case:
> 
> - In my test with vanilla 2.6.11.7, there was no other appletalk
>   station on the net -> refcnt was -256

How long was the interface up before you removed it again? That 256
might be due to probes still floating around expiring very slowly
because there is no other station around.

> - On my working system, I use a single route and get refcnt = -1

This one I can explain quite easly, I did not found a dev_hold()
for the dev_put() that is done upon deletion of the routes when
the interface is removed.

> - When I first tried appletalk without configuring anything but the
>   interface and PearPC with Mac OS X runnning on the other side, refcnt
>   was -2

OK, I think the problem is a few missing dev_hold() when the net_device
handle is assigned to routes, probes, etc.


<Prev in Thread] Current Thread [Next in Thread>