tg3: ethtool phys_id default (rev2)
Subsystems (2)
Michael Chan
Acked-byQuoted 8 lines · Stephen Hemminger
When asked to blink LEDs the tg3 driver behaves when using:
ethtool -p ethX
The default value for data is zero, and other drivers interpret this as blink forever (or at least a really long time). The tg3 driver interprets this as blink once. All drivers should have the same behaviour.Signed-off-by Stephen Hemminger <[email protected]>
We should do this across the board for bnx2, bnx2x, and niu as well.
From: "Michael Chan" <[email protected]>
Date: Fri, 22 Feb 2008 11:16:42 -0800
Quoted 11 lines · Stephen Hemminger
Quoted 8 lines
When asked to blink LEDs the tg3 driver behaves when using:
ethtool -p ethX
The default value for data is zero, and other drivers interpret this as blink forever (or at least a really long time). The tg3 driver interprets this as blink once. All drivers should have the same behaviour.Signed-off-by Stephen Hemminger <[email protected]>Acked-by Michael Chan <[email protected]>
Applied.
Quoted 1 line
We should do this across the board for bnx2, bnx2x, and niu as well.
Agreed.
Quoted 10 lines · David Miller
From: "Michael Chan" <[email protected]>
Date: Fri, 22 Feb 2008 11:16:42 -0800Quoted 7 lines · Stephen Hemminger
Quoted 6 lines
When asked to blink LEDs the tg3 driver behaves when using:
ethtool -p ethX
The default value for data is zero, and other drivers interpret this as blink forever (or at least a really long time). The tg3 driver interprets this as blink once. All drivers should have the same behaviour.
...
Quoted 3 lines
Quoted 1 line
We should do this across the board for bnx2, bnx2x, and niu as well.
Agreed.
Doesn't this mean that ethtool -p will hold the RTNL lock forever? Is this a good idea?
For example on the Red Hat machine I have here if you do:
ethtool -p eth2 100000 &
reboot
Various things the shutdown scripts try to do will fail because of the held RTNL lock. in the end the script dies and the machine does not reboot.
Eliezer
Quoted 20 lines · On Sun, 24 Feb 2008 07:42:06 +0200 "Eliezer Tamir" <[email protected]>…
Quoted 10 lines · David Miller
From: "Michael Chan" <[email protected]>
Date: Fri, 22 Feb 2008 11:16:42 -0800Quoted 7 lines · Stephen Hemminger
Quoted 6 lines
When asked to blink LEDs the tg3 driver behaves when using:
ethtool -p ethX
The default value for data is zero, and other drivers interpret this as blink forever (or at least a really long time). The tg3 driver interprets this as blink once. All drivers should have the same behaviour....
Quoted 3 lines
Quoted 1 line
We should do this across the board for bnx2, bnx2x, and niu as well.
Agreed.
Doesn't this mean that ethtool -p will hold the RTNL lock forever? Is this a good idea?
Quoted 8 lines
For example on the Red Hat machine I have here if you do:
ethtool -p eth2 100000 &
rebootVarious things the shutdown scripts try to do will fail because of the held RTNL lock. in the end the script dies and the machine does not reboot.
1. ethtool -p is only used by root to identify interfaces, so in practice this is not a real problem.
2. ethtool -p is interruptible, and the reboot process sends a SIGTERM to all processes.
Quoted 12 lines
Quoted 11 lines
Doesn't this mean that ethtool -p will hold the RTNL lock forever? Is this a good idea?
For example on the Red Hat machine I have here if you do:
ethtool -p eth2 100000 &
rebootVarious things the shutdown scripts try to do will fail because of the held RTNL lock. in the end the script dies and the machine does not reboot.
Quoted 5 lines
1. ethtool -p is only used by root to identify interfaces, so in practice this is not a real problem.
2. ethtool -p is interruptible, and the reboot process sends a SIGTERM to all processes.
The simple use-case of running ethtool -p eth0 10000 on an ssh console and them going to the rack and pressing the power button fails.
It seems like the shutdown script dies a long way before it usually kills all the processes.
Bringing down NFS, SNMP and several other services fails. Then things die for being blocked more then 120 seconds and the system is stuck.