diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-05-26 20:28:23 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-05-26 20:28:23 +0000 |
commit | adb4b592d6e2f3a179e3c62777ba97d760dba733 (patch) | |
tree | f423b04830194c10c8e75e8febf0cb08073e0816 /sys/dev/pci | |
parent | 196f5066228d908cbac060396a1aba557efe1ef3 (diff) |
ETHER_ALIGN rx mbuf so that it works on strict alignment archs. OK dlg@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_tht.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c index 31a0fce214d..383764cacb6 100644 --- a/sys/dev/pci/if_tht.c +++ b/sys/dev/pci/if_tht.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tht.c,v 1.103 2007/05/26 20:22:01 dlg Exp $ */ +/* $OpenBSD: if_tht.c,v 1.104 2007/05/26 20:28:22 claudio Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -1287,7 +1287,8 @@ tht_rxf_fill(struct tht_softc *sc, int wait) if (!ISSET(m->m_flags, M_EXT)) goto free_m; - m->m_len = m->m_pkthdr.len = MCLBYTES; + m->m_data += ETHER_ALIGN; + m->m_len = m->m_pkthdr.len = MCLBYTES - ETHER_ALIGN; dmap = pkt->tp_dmap; if (bus_dmamap_load_mbuf(dmat, dmap, m, |