From: Robert Stonehouse <rstonehouse@solarflare.com>
To: Stephen Hemminger <shemminger@linux-foundation.org>
Cc: netdev@vger.kernel.org, linux-net-drivers@solarflare.com,
bhutchings@solarflare.com
Subject: Re: [PATCH] [RFC] New driver "sfc" for Solarstorm SFC4000 controller
Date: Thu, 29 Nov 2007 16:27:41 +0000 [thread overview]
Message-ID: <474EE87D.6010702@solarflare.com> (raw)
Stephen Hemminger wrote:
> On Fri, 23 Nov 2007 17:08:15 +0000
> Ben Hutchings <bhutchings@solarflare.com> wrote:
>
>> 1. When we enable NAPI polling, we need to set __LINK_STATE_START in
>> the net device used for NAPI. This bit is commented as private in
>> netdevice.h, but e1000 also does this. Is this incorrect?
>>
> Why are you using it directly?
>
It seems this line is historic and we can remove it.
> The driver is pretty big (28K loc), and non trivial to get a good review.
We are aware that it appears to be a large amount of code.
The driver does support many types of PHY (10Gbase-T, XFP, CX4) on five
different 10G reference designs and one 1G NIC ref design.
There is also support for two generations of controller silicon, full
ethtool support, start of day self-tests and an mtd driver for putting
PXE images into flash.
Perhaps we could help making it more reviewable by suggesting some sets
of files that can be reviewed together that represent different parts of
the functionality. The main functionality is contained in efx.c, rx.c,
tx.c and falcon.c if that helps.
> Minor note:
> * use u8 not uint8_t (etc.)
> * gone overboard with docbook style comments, they are only needed
> on external API's.
> * Please use dev_err() rather than reinventing own message macros.
OK - we will look at addressing these as well as checkpatch violations
and resubmit a patch shortly.
> * why are you exporting symbol's?
>
We need a small API so that other drivers can use parts of the hardware
after the main driver has performed initialisation.
One example is the mtd driver to access the flash. Another example is an
accelerated driver for Xen that Solarflare is in the process of
submitting.
Regards
--
Rob Stonehouse
next reply other threads:[~2007-11-29 16:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-29 16:27 Robert Stonehouse [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-11-23 17:08 [PATCH] [RFC] New driver "sfc" for Solarstorm SFC4000 controller Ben Hutchings
2007-11-28 6:09 ` Stephen Hemminger
2007-11-28 6:47 ` Joe Perches
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=474EE87D.6010702@solarflare.com \
--to=rstonehouse@solarflare.com \
--cc=bhutchings@solarflare.com \
--cc=linux-net-drivers@solarflare.com \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).