From: Wagner Ferenc <wferi@niif.hu>
To: Stephen Hemminger <shemminger@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: network driver usage count
Date: Wed, 21 Nov 2007 23:16:59 +0100 [thread overview]
Message-ID: <87myt7nt0k.fsf@szonett.ki.iif.hu> (raw)
In-Reply-To: <20071121130445.569d2176@freepuppy.rosehill> (Stephen Hemminger's message of "Wed, 21 Nov 2007 13:04:45 -0800")
Stephen Hemminger <shemminger@linux-foundation.org> writes:
> On Wed, 21 Nov 2007 20:45:11 +0100
> Ferenc Wagner <wferi@niif.hu> wrote:
>
>> Under 2.6.23.1, my lsmod output shows this:
>>
>> $ lsmod | grep tg3
>> tg3 100580 0
>>
>> The usage count is zero, even though it drives my two physical
>> interfaces:
>>
>> $ ls -l /sys/class/net/eth-gb?/device/driver
>> lrwxrwxrwx 1 root root 0 2007-11-21 19:58 /sys/class/net/eth-gb1/device/driver -> ../../../bus/pci/drivers/tg3
>> lrwxrwxrwx 1 root root 0 2007-11-21 19:58 /sys/class/net/eth-gb2/device/driver -> ../../../bus/pci/drivers/tg3
>>
>> These interfaces are up and bonded together, but that doesn't seem to
>> matter at all. I also checked other machines, the network driver
>> (tg3, e1000) usage counts are always zero under various recent 2.6
>> kernels, but nonzero under 2.4.21 for example.
>>
>> And really, the module could be removed, cutting my ssh session. :)
>>
>> Was this made possible intentionally? If yes, why?
>
> Yes, so devices can be removed at anytime.
Hmm, that would warrant nuking all the reference counts on every
driver. I must be missing something, since I really feel it goes
against common sense. Can you point me to some discussion of this
change? I mean, I couldn't remove the driver of a mounted filesystem.
So why can I remove a driver serving live network traffic?
--
Thanks,
Feri.
next prev parent reply other threads:[~2007-11-21 22:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-21 19:45 Ferenc Wagner
2007-11-21 21:04 ` Stephen Hemminger
2007-11-21 22:16 ` Wagner Ferenc [this message]
2007-11-21 23:53 ` Francois Romieu
2007-11-23 1:04 ` David Miller
2007-11-23 10:09 ` Ferenc Wagner
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=87myt7nt0k.fsf@szonett.ki.iif.hu \
--to=wferi@niif.hu \
--cc=linux-kernel@vger.kernel.org \
--cc=shemminger@linux-foundation.org \
/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
all inboxes | Powered by JetHome®