From: "Dale Farnsworth" <dale@farnsworth.org>
To: Nicolas DET <det.nicolas@free.fr>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: Marvell MV6436xx ethernet driver patch
Date: Tue, 30 Aug 2005 16:32:05 -0700 [thread overview]
Message-ID: <20050830233205.GB24345@xyzzy.farnsworth.org> (raw)
In-Reply-To: <20050830181958.D856F1C0008A@mwinf0706.wanadoo.fr>
On Tue, Aug 30, 2005 at 08:16:12PM +0100, Nicolas DET wrote:
> You can find enclosed a patch for the Marvell MV643xx ethernet driver.
>
> It's also there:
> http://arrakin.homedns.org/~nicolas/mv643xx_eth.tar.gz (tarball)
> http://arrakin.homedns.org/~nicolas/mv643xx_eth.diff.bz2
>
> The diff is against the kernel 2.6.13 (kernel.org).
Thank you for working on this driver, Nicolas.
> The main changes (AFAIR):
> * Workaround for the TCP/UDP hw checksum
I implemented something similar a while back, but found it too ugly to
keep around. Fortunately, there is already a much simpler workaround for
the hw checksum bug in linux-2.6.git. See
http://oss.sgi.com/archives/netdev/2005-08/msg00124.html
> * Use hardware for statistics
This is good. We need to remove the code it replaces rather than
have it partially ifdeffed out. Can you do that and split this part
out as a separate patch and submit to netdev@vger.kernel.org ?
> * Define and use SRAM (for pegasos II archp/ppc/chrp_pegasos_eth.c)
Good. This is pegasos-specific and it would be good to split this
patch out from the mv643xx driver bits. Descriptors in SRAM is a big win.
> * Able to use max burst size from/to DDR (serious transfer boost)
This is a good idea. I suspect that most of the gain is from
turning off snooping and flushing/invalidating the cache explicitly.
Implementation-wise, I'd rather we not manipulate the MV643XX_ETH_BAR_?
registers directly in the driver. Today that is done in platform
setup code. This has promise but needs to be reworked.
> * Option can be selected through the menu (drivers/net/Kconfig)
Do these really need to be user configurable?
The following shouldn't be user options, IMHO:
MV643XX_CHECKSUM_OFFLOAD_TX -- on
MV643XX_CHECKSUM_OFFLOAD_TX_WORKAROUND -- on
MV64XXX_HWSTATS -- on
MV643XX_COAL -- on
MV64XXX_USESRAM -- on/off depending on platform
MV64XXX_MAXBURST -- on/off depending on platform
I'm not as sure about MV643XX_NAPI, but I think it should always be on
for GigE drivers. Is it worth being able to turn off NAPI?
Some general comments:
Several Kconfig hunks seem unrelated to MV643XX
Several lines in the patch have trailing whitespace.
C++ style comments (//) aren't acceptable.
Why the addition of EXTRA_BYTES to the definition of RX_SKB_SIZE? Did
you see problems without it?
-Dale Farnsworth
next parent reply other threads:[~2005-08-30 23:53 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20050830181958.D856F1C0008A@mwinf0706.wanadoo.fr>
2005-08-30 23:32 ` Dale Farnsworth [this message]
2005-08-31 6:55 ` Marvell MV6436xx ethernet driver patch Nicolas DET
2005-08-31 9:47 ` Sven Luther
2005-08-31 16:04 ` Mark A. Greer
2005-08-31 16:17 ` Mark A. Greer
2005-08-31 16:33 ` Sven Luther
2005-08-31 17:07 ` Mark A. Greer
2005-08-30 19:07 Nicolas DET
2005-08-30 19:09 ` Christoph Hellwig
2005-08-31 0:59 ` Andrew Morton
2005-09-13 10:35 ` Nicolas DET
2005-09-13 10:35 ` Christoph Hellwig
2005-09-13 20:01 ` Dale Farnsworth
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=20050830233205.GB24345@xyzzy.farnsworth.org \
--to=dale@farnsworth.org \
--cc=det.nicolas@free.fr \
--cc=linuxppc-dev@ozlabs.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).