diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-11-03 18:46:01 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-11-03 18:46:01 +0000 |
commit | 23b5e7ec50a61016871ba00c1e34f00e7bb99f85 (patch) | |
tree | 027b016d88a46f89d5958d15c5a2bccfd78b5ba7 /sys/arch/sgi | |
parent | 8eda25dbf0229a7af7ca40a4def7c0637cad758e (diff) |
Offset the start of the RX buffers by two bytes, so that the ethernet
header is properly aligned; speeds up RX buffer -> mbuf copies.
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r-- | sys/arch/sgi/dev/if_iecreg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sgi/dev/if_iecreg.h b/sys/arch/sgi/dev/if_iecreg.h index e43509e399a..4e4b8efbce2 100644 --- a/sys/arch/sgi/dev/if_iecreg.h +++ b/sys/arch/sgi/dev/if_iecreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iecreg.h,v 1.1 2009/11/01 19:34:02 miod Exp $ */ +/* $OpenBSD: if_iecreg.h,v 1.2 2009/11/03 18:46:00 miod Exp $ */ /* * Copyright (c) 2009 Miodrag Vallat. @@ -27,7 +27,7 @@ #define IEC_NRXDESC_MAX 512 #define IEC_RXDESCSIZE (13 * 128) /* should be 128byte aligned. */ -#define IEC_RXD_BUFOFFSET (64) +#define IEC_RXD_BUFOFFSET (64 + 2) /* to align Ethernet header */ #define IEC_RXD_NRXPAD (IEC_RXD_BUFOFFSET - 2 * sizeof(uint32_t)) #define IEC_RXD_BUFSIZE (IEC_RXDESCSIZE - IEC_RXD_BUFOFFSET) |