login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
25
Re: [PATCH 09/26] atl1: refactor tx processing
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Jeff Garzik
Subject:
Re: [PATCH 09/26] atl1: refactor tx processing
Date: Thursday, January 24, 2008 - 8:01 pm
Jay Cliburn wrote:
quoted text
> On Tue, 22 Jan 2008 18:31:09 -0600 > Jay Cliburn <jacliburn@bellsouth.net> wrote: > >> On Tue, 22 Jan 2008 04:58:17 -0500 >> Jeff Garzik <jeff@garzik.org> wrote: >> > [...] >>> for such a huge patch, this description is very tiny. [describe] >>> what is refactored, and why. > > Is this one any better? > > > >>From df475e2eea401f9dc18ca23dab538b99fb9e710c Mon Sep 17 00:00:00 2001 > From: Jay Cliburn <jacliburn@bellsouth.net> > Date: Wed, 23 Jan 2008 21:36:36 -0600 > Subject: [PATCH] atl1: simplify tx packet descriptor > > The transmit packet descriptor consists of four 32-bit words, with word 3 > upper bits overloaded depending upon the condition of its bits 3 and 4. > The driver currently duplicates all word 2 and some word 3 register bit > definitions unnecessarily and also uses a set of nested structures in its > definition of the TPD without good cause. This patch adds a lengthy > comment describing the TPD, eliminates duplicate TPD bit definitions, > and simplifies the TPD structure itself. It also expands the TSO check > to correctly handle custom checksum versus TSO processing using the revised > TPD definitions. Finally, shorten some variable names in the transmit > processing path to reduce line lengths, rename some variables to better > describe their purpose (e.g., nseg versus m), and add a comment or two > to better describe what the code is doing. > > Signed-off-by: Jay Cliburn <jacliburn@bellsouth.net> > --- > drivers/net/atlx/atl1.c | 265 +++++++++++++++++++++++++---------------------- > drivers/net/atlx/atl1.h | 201 +++++++++++++++++++----------------- > 2 files changed, 246 insertions(+), 220 deletions(-)
Yep, better. Jeff --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH 00/26] atl1: divide and modernize
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 01/26] atl1: relocate atl1 driver to /drivers/net/atlx
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 02/26] atl1: move common functions to atlx files
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 03/26] atl1: fix broken TSO
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 04/26] atl1: add ethtool register dump
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 05/26] atl1: print debug info if rrd error
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 06/26] atl1: update initialization parameters
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 07/26] atl1: clarify max rx frame size
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 09/26] atl1: refactor tx processing
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 11/26] atl1: refactor initialization and startup
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 12/26] atl1: refactor atl1_probe
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 13/26] atl1: refactor interrupt handling
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 14/26] atl1: move stray defines to header file
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 15/26] atl1: tidy up ring management
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 16/26] atl1: modernize check link function
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 17/26] atl1: update phy config function
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 18/26] atl1: make function static
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 19/26] atl1: modernize down/up functions
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 20/26] atl1: update change mtu
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 21/26] atl1: update atl1_close
, jacliburn
, (Mon Dec 31, 6:59 pm)
[PATCH 22/26] atl1: update netpoll
, jacliburn
, (Mon Dec 31, 7:00 pm)
[PATCH 23/26] atl1: update shutdown and remove functions
, jacliburn
, (Mon Dec 31, 7:00 pm)
[PATCH 24/26] atl1: update wake-on-lan
, jacliburn
, (Mon Dec 31, 7:00 pm)
[PATCH 25/26] atl1: add NAPI support
, jacliburn
, (Mon Dec 31, 7:00 pm)
Re: [PATCH 25/26] atl1: add NAPI support
, Joonwoo Park
, (Mon Dec 31, 11:09 pm)
Re: [PATCH 25/26] [REVISED] atl1: add NAPI support
, Jay Cliburn
, (Tue Jan 1, 11:15 am)
RE: [PATCH 25/26] [REVISED] atl1: add NAPI support
, Joonwoo Park
, (Tue Jan 1, 7:56 pm)
Re: [PATCH 25/26] [REVISED] atl1: add NAPI support
, David Miller
, (Tue Jan 1, 8:07 pm)
Re: [PATCH 04/26] atl1: add ethtool register dump
, Jeff Garzik
, (Tue Jan 22, 2:54 am)
Re: [PATCH 05/26] atl1: print debug info if rrd error
, Jeff Garzik
, (Tue Jan 22, 2:55 am)
Re: [PATCH 06/26] atl1: update initialization parameters
, Jeff Garzik
, (Tue Jan 22, 2:56 am)
Re: [PATCH 09/26] atl1: refactor tx processing
, Jeff Garzik
, (Tue Jan 22, 2:58 am)
Re: [PATCH 13/26] atl1: refactor interrupt handling
, Jeff Garzik
, (Tue Jan 22, 2:59 am)
Re: [PATCH 19/26] atl1: modernize down/up functions
, Jeff Garzik
, (Tue Jan 22, 3:01 am)
Re: [PATCH 09/26] atl1: refactor tx processing
, Jay Cliburn
, (Tue Jan 22, 5:31 pm)
Re: [PATCH 06/26] atl1: update initialization parameters
, Jay Cliburn
, (Tue Jan 22, 7:13 pm)
Re: [PATCH 06/26] atl1: update initialization parameters
, Jeff Garzik
, (Tue Jan 22, 7:19 pm)
Re: [PATCH 06/26] atl1: update initialization parameters
, Chris Snook
, (Tue Jan 22, 7:30 pm)
Re: [PATCH 09/26] atl1: refactor tx processing
, Jay Cliburn
, (Thu Jan 24, 6:00 pm)
Re: [PATCH 09/26] atl1: refactor tx processing
, Chris Snook
, (Thu Jan 24, 6:08 pm)
Re: [PATCH 09/26] atl1: refactor tx processing
, Jeff Garzik
, (Thu Jan 24, 8:01 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Mel Gorman
Re: [PATCH 1/4] vmstat: remove zone->lock from walk_zones_in_node
Guenter Roeck
Re: [lm-sensors] Location for thermal drivers
David Woodhouse
Re: RFC: Moving firmware blobs out of the kernel.
Siddha, Suresh B
Re: [PATCH 2.6.21 review I] [11/25] x86: default to physical mode on hotplug CPU k...
Peter Zijlstra
Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)
git-commits-head
:
Linux Kernel Mailing List
[MIPS] Fix potential latency problem due to non-atomic cpu_wait.
Linux Kernel Mailing List
USB: rename USB_SPEED_VARIABLE to USB_SPEED_WIRELESS
Linux Kernel Mailing List
lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)
Linux Kernel Mailing List
[Bluetooth] Initiate authentication during connection establishment
Linux Kernel Mailing List
[POWERPC] 4xx: Add ppc40x_defconfig
linux-netdev
:
MERCEDES
Your mail id has won 950,000.00 in the MERCEDES Benz Online Promo.for claims send:
David Miller
Re: [PATCH] xen/netfront: do not mark packets of length < MSS as GSO
David Miller
Re: skb_segment() questions
Shan Wei
[RFC PATCH net-next 2/5]IPv6:netfilter: Send an ICMPv6 "Fragment Reassembly Timeou...
Stanislaw Gruszka
[PATCH 1/4] bnx2x: use smp_mb() to keep ordering of read write operations
git
:
Nicolas Sebrecht
git-svn died of signal 11 (was "3 failures on test t9100 (svn)")
Junio C Hamano
Re: [PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
Martin Langhoff
Re: [PATCH] GIT commit statistics.
Alexandre Julliard
[PATCH] gitweb: Put back shortlog instead of graphiclog in the project list.
Josh Triplett
[PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
openbsd-misc
:
Taisto Qvist XX
Re: AMD GEODE LX-800 just works with kernel from install42.iso and kernelpanics wi...
Nico Meijer
Re: gOS Develop Kit with VIA pc-1 Processor Platform VIA C7-D
Andreas Bihlmaier
Re: jetway board sensors (Fintek F71805F)
admin
Drive a 2009 car from R799p/m
Antti Harri
Re: how to create a sha256 hash
Colocation donated by:
Syndicate