From adb4b592d6e2f3a179e3c62777ba97d760dba733 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Sat, 26 May 2007 20:28:23 +0000 Subject: ETHER_ALIGN rx mbuf so that it works on strict alignment archs. OK dlg@ --- sys/dev/pci/if_tht.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci') 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 @@ -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, -- cgit v1.2.3