summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-05-01 16:38:20 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-05-01 16:38:20 +0000
commit4a8c9a85958c4760a4517ef1e7da80f6cae1d688 (patch)
treee2469f0a1d9d378dec4b5744f02c403524ed7d12
parente561711426c8fe3ef0c37f6a1664afc286cb75ef (diff)
replace magic value of 32 with EM_MAX_SCATTER.
-rw-r--r--sys/dev/pci/if_em.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c
index bdaab019e7c..63ab66d2cef 100644
--- a/sys/dev/pci/if_em.c
+++ b/sys/dev/pci/if_em.c
@@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE.
***************************************************************************/
-/* $OpenBSD: if_em.c,v 1.116 2006/04/28 18:22:29 brad Exp $ */
+/* $OpenBSD: if_em.c,v 1.117 2006/05/01 16:38:19 brad Exp $ */
/* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */
#include <dev/pci/if_em.h>
@@ -902,8 +902,9 @@ em_encap(struct em_softc *sc, struct mbuf *m_head)
/*
* Map the packet for DMA.
*/
- if (bus_dmamap_create(sc->txtag, MAX_JUMBO_FRAME_SIZE, 32,
- MAX_JUMBO_FRAME_SIZE, 0, BUS_DMA_NOWAIT, &q.map)) {
+ if (bus_dmamap_create(sc->txtag, MAX_JUMBO_FRAME_SIZE,
+ EM_MAX_SCATTER, MAX_JUMBO_FRAME_SIZE, 0,
+ BUS_DMA_NOWAIT, &q.map)) {
sc->no_tx_map_avail++;
return (ENOMEM);
}