aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/fs_enet/fs_enet.h
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2007-10-01 15:20:52 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:54:02 -0400
commit0d0d9c150c046cbd3e507adcfa2d78db82f1f452 (patch)
tree9061d687f765b7cd831d8a6dce83ae925a58d994 /drivers/net/fs_enet/fs_enet.h
parentc6565331b7162a8348c70c37b4c33bedb6d4f02d (diff)
fs_enet: Align receive buffers.
At least some hardware driven by this driver needs receive buffers to be aligned on a 16-byte boundary. This usually happens by chance, but it breaks if slab debugging is enabled. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/fs_enet/fs_enet.h')
-rw-r--r--drivers/net/fs_enet/fs_enet.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/fs_enet/fs_enet.h b/drivers/net/fs_enet/fs_enet.h
index fbe2087d0d79..85571e49ec72 100644
--- a/drivers/net/fs_enet/fs_enet.h
+++ b/drivers/net/fs_enet/fs_enet.h
@@ -82,7 +82,8 @@ struct phy_info {
82/* Must be a multiple of 32 (to cover both FEC & FCC) */ 82/* Must be a multiple of 32 (to cover both FEC & FCC) */
83#define PKT_MAXBLR_SIZE ((PKT_MAXBUF_SIZE + 31) & ~31) 83#define PKT_MAXBLR_SIZE ((PKT_MAXBUF_SIZE + 31) & ~31)
84/* This is needed so that invalidate_xxx wont invalidate too much */ 84/* This is needed so that invalidate_xxx wont invalidate too much */
85#define ENET_RX_FRSIZE L1_CACHE_ALIGN(PKT_MAXBUF_SIZE) 85#define ENET_RX_ALIGN 16
86#define ENET_RX_FRSIZE L1_CACHE_ALIGN(PKT_MAXBUF_SIZE + ENET_RX_ALIGN - 1)
86 87
87struct fs_enet_mii_bus { 88struct fs_enet_mii_bus {
88 struct list_head list; 89 struct list_head list;