[PATCH] mv643xx_eth: Receive buffers require 8 byte alignment
authorDale Farnsworth <dale@farnsworth.org>
Mon, 16 Jan 2006 23:51:22 +0000 (16:51 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Tue, 17 Jan 2006 12:23:37 +0000 (07:23 -0500)
commitb44cd572623cb6a931a947d9108595517fd945f8
treefc4a28e35531ad9bc3596b262ad834aff82d4662
parent16e0301831767ee1b8e5e022cc08e76f9f8a8938
[PATCH] mv643xx_eth: Receive buffers require 8 byte alignment

The Marvell mv643xx ethernet hardware requires that DMA buffers be
aligned to 8-byte boundaries.  This patch satisfies this requirement.
Buffers allocated by dev_alloc_skb() only have 4-byte alignment when
slab debugging is enabled.

Also, document that the 2-byte offset to align the IP packets on
receive is a hardware feature and is not tied to NET_IP_ALIGN.

Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
 mv643xx_eth.c |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/mv643xx_eth.c