better aligned for fast access. i didnt bench, so maybe this does nothing.
-/* $OpenBSD: if_vic.c,v 1.52 2007/11/28 11:13:47 reyk Exp $ */
+/* $OpenBSD: if_vic.c,v 1.53 2008/07/07 00:42:34 dlg Exp $ */
/*
* Copyright (c) 2006 Reyk Floeter <reyk@openbsd.org>
m_freem(m);
return (NULL);
}
- m->m_len = m->m_pkthdr.len = MCLBYTES;
+ m->m_data += ETHER_ALIGN;
+ m->m_len = m->m_pkthdr.len = MCLBYTES - ETHER_ALIGN;
if (bus_dmamap_load_mbuf(sc->sc_dmat, map, m, BUS_DMA_NOWAIT) != 0) {
printf("%s: could not load mbuf DMA map", DEVNAME(sc));