diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2005-03-12 13:37:50 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2005-03-12 13:37:50 +0000 |
commit | 010ced868247afecffe6a13f4684dbdfb9f6bd91 (patch) | |
tree | 917caf065c8fa317069f9282302ce9244ef6fba5 /sys/dev/pci/if_iwi.c | |
parent | 6ffa6a864a9da2e25a36c40cf7f6a377952ee430 (diff) |
prevent fragmentation from happening.
Diffstat (limited to 'sys/dev/pci/if_iwi.c')
-rw-r--r-- | sys/dev/pci/if_iwi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_iwi.c b/sys/dev/pci/if_iwi.c index ccb45bd2cc7..e702e0c6453 100644 --- a/sys/dev/pci/if_iwi.c +++ b/sys/dev/pci/if_iwi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwi.c,v 1.28 2005/03/12 13:25:45 damien Exp $ */ +/* $OpenBSD: if_iwi.c,v 1.29 2005/03/12 13:37:49 damien Exp $ */ /*- * Copyright (c) 2004, 2005 @@ -463,8 +463,8 @@ iwi_dma_alloc(struct iwi_softc *sc) * Allocate Tx buffers DMA maps */ for (i = 0; i < IWI_TX_RING_SIZE; i++) { - error = bus_dmamap_create(sc->sc_dmat, MCLBYTES, IWI_MAX_NSEG, - MCLBYTES, 0, BUS_DMA_NOWAIT, &sc->tx_buf[i].map); + error = bus_dmamap_create(sc->sc_dmat, MCLBYTES, 1, MCLBYTES, + 0, BUS_DMA_NOWAIT, &sc->tx_buf[i].map); if (error != 0) { printf("%s: could not create tx buf DMA map", sc->sc_dev.dv_xname); |