summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_oce.c
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2015-06-29 18:58:05 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2015-06-29 18:58:05 +0000
commited3f27c1e3bc80e9b8cd27a064844fd0ba1a4837 (patch)
tree28a9bd633a4ba265c70b40dfb44df3a67696fe8c /sys/dev/pci/if_oce.c
parent7db90f8dd492e25ba3a736b83a8a443e4a71e716 (diff)
Hide ETHER_ALIGN mbuf adjustment under "#ifdef __STRICT_ALIGNMENT"
for now to get jumbo frames working. oce(4) will need the same treatment as ix(4) when sparc64 support will be implemented. Tested by Pedro Caetano <pedrocaetano at binaryflows ! com>, thanks!
Diffstat (limited to 'sys/dev/pci/if_oce.c')
-rw-r--r--sys/dev/pci/if_oce.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_oce.c b/sys/dev/pci/if_oce.c
index 2aa13db54a8..3da3b451c66 100644
--- a/sys/dev/pci/if_oce.c
+++ b/sys/dev/pci/if_oce.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_oce.c,v 1.84 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_oce.c,v 1.85 2015/06/29 18:58:04 mikeb Exp $ */
/*
* Copyright (c) 2012 Mike Belopuhov
@@ -1773,7 +1773,9 @@ oce_get_buf(struct oce_rq *rq)
}
pkt->mbuf->m_len = pkt->mbuf->m_pkthdr.len = MCLBYTES;
+#ifdef __STRICT_ALIGNMENT
m_adj(pkt->mbuf, ETHER_ALIGN);
+#endif
if (bus_dmamap_load_mbuf(sc->sc_dmat, pkt->map, pkt->mbuf,
BUS_DMA_NOWAIT)) {