From: Stephen Hemminger <shemminger@vyatta.com>
To: "Eliezer Tamir" <eliezert@broadcom.com>
Cc: "David Miller" <davem@davemloft.net>,
mchan@broadcom.com, jgarzik@pobox.com, netdev@vger.kernel.org
Subject: Re: [PATCH] tg3: ethtool phys_id default (rev2)
Date: Mon, 25 Feb 2008 07:58:14 -0800 [thread overview]
Message-ID: <20080225075814.577b3eb6@extreme> (raw)
In-Reply-To: <1203831726.8232.115.camel@lb-tlvb-eliezer.il.broadcom.com>
On Sun, 24 Feb 2008 07:42:06 +0200
"Eliezer Tamir" <eliezert@broadcom.com> wrote:
>
> On Sat, 2008-02-23 at 19:52 -0800, David Miller wrote:
> > From: "Michael Chan" <mchan@broadcom.com>
> > Date: Fri, 22 Feb 2008 11:16:42 -0800
> >
> > > On Fri, 2008-02-22 at 10:24 -0800, Stephen Hemminger wrote:
> > > > 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.
> ...
> > > 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.
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.
next prev parent reply other threads:[~2008-02-25 15:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20080222102429.7e48f1f1@extreme>
2008-02-22 19:16 ` [PATCH] tg3: ethtool phys_id default (rev2) Michael Chan
2008-02-24 3:52 ` David Miller
2008-02-24 5:42 ` Eliezer Tamir
2008-02-25 15:58 ` Stephen Hemminger [this message]
2008-02-25 16:13 ` Eliezer Tamir
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=20080225075814.577b3eb6@extreme \
--to=shemminger@vyatta.com \
--cc=davem@davemloft.net \
--cc=eliezert@broadcom.com \
--cc=jgarzik@pobox.com \
--cc=mchan@broadcom.com \
--cc=netdev@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.