From: "Michael Chan" <mchan@broadcom.com>
To: "wendy xiong" <wendyx@us.ibm.com>
Cc: netdev <netdev@vger.kernel.org>,
jeff@garzik.org, "David Miller" <davem@davemloft.net>
Subject: Re: [ PATCH 1/1 2.6.25-rc9] bnx2: Add EEH support in bnx2x driver
Date: Tue, 22 Apr 2008 14:46:31 -0700 [thread overview]
Message-ID: <1208900791.13806.5.camel@dell> (raw)
In-Reply-To: <1208893442.7339.17.camel@wendyx.austin.ibm.com>
On Tue, 2008-04-22 at 14:44 -0500, wendy xiong wrote:
> >Shouldn't we attach first before netif_start?
>
> From my understanding, network interface function dev->open will call
> device driver's open function to initialize internal data structures
> and
> enable interrupt, then driver starts the receive queue by calling
> netif_start_queue.
>
> Looks bnx2_netif_start() enables hardware interrupt and receive
> polling
> interrupt. So I think we can do netif_device_attach after
> bnx2_netif_start() according to dev->open route concept.
>
I think it doesn't make a whole lot of difference either way, especially
if you hold the rtnl_lock(). But in the normal course of loading the
driver, the LINK_STATE_PRESENT bit gets set during ->probe() when the
driver calls register_netdev(). So it is attached before ->open().
next prev parent reply other threads:[~2008-04-22 20:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-21 21:20 [ PATCH 1/1 2.6.25-rc9] bnx2: Add EEH support in bnx2x driver wendy xiong
2008-04-22 0:14 ` Michael Chan
2008-04-22 19:44 ` wendy xiong
2008-04-22 21:46 ` Michael Chan [this message]
2008-04-23 20:36 ` [ PATCH 1/1 2.6.25-rc9] bnx2: Add EEH support in bnx2 driver - Resending wendy xiong
2008-04-24 0:23 ` Michael Chan
2008-04-24 15:37 ` wendy xiong
2008-04-25 0:34 ` Michael Chan
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=1208900791.13806.5.camel@dell \
--to=mchan@broadcom.com \
--cc=davem@davemloft.net \
--cc=jeff@garzik.org \
--cc=netdev@vger.kernel.org \
--cc=wendyx@us.ibm.com \
/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;
as well as URLs for NNTP newsgroup(s).