netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] [RFC] New driver "sfc" for Solarstorm SFC4000 controller
@ 2007-11-29 16:27 Robert Stonehouse
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Stonehouse @ 2007-11-29 16:27 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev, linux-net-drivers, bhutchings

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

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [PATCH] [RFC] New driver "sfc" for Solarstorm SFC4000 controller
@ 2007-11-23 17:08 Ben Hutchings
  2007-11-28  6:09 ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Hutchings @ 2007-11-23 17:08 UTC (permalink / raw)
  To: netdev; +Cc: linux-net-drivers

This is a net driver (and MTD driver, sfc_mtd) for our SFC4000 10G
Ethernet controller, branded "Solarstorm", with various PHYs.  It is
intended to support our NIC reference designs SFE4001 (10GBASE-T),
SFE4002 (XFP), SFE4003 (10GBASE-CX4), OEM designs based on them, and
some development boards.  We have been maintaining drivers out-of-tree
for some time but are now preparing them to work in-tree.

There are some issues that might need to be addressed:

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?

2. We added a lot of definitions and code for 10G MDIO.  This is mostly
   generic and could be moved into core code.

We welcome review comments and are ready to address them.

The patch (against net-2.6.25) is at:
    https://support.solarflare.com/netdev/net-2.6.25-sfc-2.2.0019.patch

The new files may also be downloaded as a tarball:
    https://support.solarflare.com/netdev/net-2.6.25-sfc-2.2.0019.tar.gz

And for verification there is:
    https://support.solarflare.com/netdev/MD5SUMS

Ben.

-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-29 16:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-29 16:27 [PATCH] [RFC] New driver "sfc" for Solarstorm SFC4000 controller Robert Stonehouse
  -- strict thread matches above, loose matches on Subject: below --
2007-11-23 17:08 Ben Hutchings
2007-11-28  6:09 ` Stephen Hemminger
2007-11-28  6:47   ` Joe Perches

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).