Re: network driver usage count

2007-11-23 Thread Ferenc Wagner
David Miller <[EMAIL PROTECTED]> writes: > From: Wagner Ferenc <[EMAIL PROTECTED]> > Date: Wed, 21 Nov 2007 23:16:59 +0100 > >> Hmm, that would warrant nuking all the reference counts on every >> driver. > > That's not true. When packets are in flight, references go > to the device and the device

Re: network driver usage count

2007-11-22 Thread David Miller
From: Wagner Ferenc <[EMAIL PROTECTED]> Date: Wed, 21 Nov 2007 23:16:59 +0100 > Hmm, that would warrant nuking all the reference counts on every > driver. That's not true. When packets are in flight, references go to the device and the device cannot be unloaded until those references get dropped

Re: network driver usage count

2007-11-21 Thread Francois Romieu
Wagner Ferenc <[EMAIL PROTECTED]> : [...] > So why can I remove a driver serving live network traffic? Why not ? It is quite common to remove physically a network/storage device. -- Ueimor - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMA

Re: network driver usage count

2007-11-21 Thread Wagner Ferenc
Stephen Hemminger <[EMAIL PROTECTED]> writes: > On Wed, 21 Nov 2007 20:45:11 +0100 > Ferenc Wagner <[EMAIL PROTECTED]> 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

Re: network driver usage count

2007-11-21 Thread Stephen Hemminger
On Wed, 21 Nov 2007 20:45:11 +0100 Ferenc Wagner <[EMAIL PROTECTED]> wrote: > Hi! > > 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/ne

network driver usage count

2007-11-21 Thread Ferenc Wagner
Hi! 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/dri