summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_em.h
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-06-18 20:42:36 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-06-18 20:42:36 +0000
commit60ef80006584c1170f8009ed0960d8c8723336c8 (patch)
tree9784e8f5d7cee17ecc76f87b65b2ce8de4616d40 /sys/dev/pci/if_em.h
parentcf6b53ada53d65f3f3eeaa22906e6d45fea066ba (diff)
On architectures which have strict alignment, shift the entire mbuf chain by
ETHER_ALIGN bytes when jumbo packets are enabled (mtu > ETHERMTU). ok henric@ (slightly different diff)
Diffstat (limited to 'sys/dev/pci/if_em.h')
-rw-r--r--sys/dev/pci/if_em.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/pci/if_em.h b/sys/dev/pci/if_em.h
index 2ca50df8bc9..a67cd1a199c 100644
--- a/sys/dev/pci/if_em.h
+++ b/sys/dev/pci/if_em.h
@@ -32,7 +32,7 @@ POSSIBILITY OF SUCH DAMAGE.
***************************************************************************/
/*$FreeBSD: if_em.h,v 1.24 2003/11/14 18:02:24 pdeuskar Exp $*/
-/* $OpenBSD: if_em.h,v 1.6 2004/05/19 11:37:00 brad Exp $ */
+/* $OpenBSD: if_em.h,v 1.7 2004/06/18 20:42:35 mcbride Exp $ */
#ifndef _EM_H_DEFINED_
#define _EM_H_DEFINED_
@@ -326,8 +326,15 @@ struct em_softc {
struct timeout em_intr_enable;
struct timeout timer_handle;
struct timeout tx_fifo_timer_handle;
+
#endif /* __OpenBSD__ */
+#ifdef __STRICT_ALIGNMENT
+ /* Used for carrying forward alignment adjustments */
+ unsigned char align_buf[ETHER_ALIGN]; /* tail of unaligned packet */
+ u_int8_t align_buf_len; /* bytes in tail */
+#endif /* __STRICT_ALIGNMENT */
+
/* Info about the board itself */
u_int32_t part_num;
u_int8_t link_active;