[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20081216.153347.95023702.davem@davemloft.net>
Date: Tue, 16 Dec 2008 15:33:47 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: afleming@...escale.com
Cc: jeff@...zik.org, galak@...nel.crashing.org, netdev@...r.kernel.org
Subject: Re: [PATCH v2.6.29 09/14] gianfar: Add macros for stepping through
BDs
From: Andy Fleming <afleming@...escale.com>
Date: Tue, 16 Dec 2008 17:21:02 -0600
> This code is based strongly on code from Dai Haruki <Dai.Haruki@...escale.com>.
>
> The gianfar Buffer Descriptors are arranged in a circular array, the end of
> which is denoted by setting the "WRAP" bit in the descriptor. However, the
> software knows the end of the ring because it knows how many descriptors are
> there. Rather than check each descriptor for whether the WRAP bit is set,
> use pointer math to determine where the next BD is. This is also useful for
> when we want to look at BDs other than the very next one (for Scatter-Gather).
>
> Signed-off-by: Andy Fleming <afleming@...escale.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists