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 | |
parent | 6ffa6a864a9da2e25a36c40cf7f6a377952ee430 (diff) |
prevent fragmentation from happening.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_ipwvar.h | 4 | ||||
-rw-r--r-- | sys/dev/pci/if_iwi.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/if_ipwvar.h b/sys/dev/pci/if_ipwvar.h index 34920eae745..b04a2b3b1f5 100644 --- a/sys/dev/pci/if_ipwvar.h +++ b/sys/dev/pci/if_ipwvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ipwvar.h,v 1.11 2005/03/12 13:31:26 damien Exp $ */ +/* $OpenBSD: if_ipwvar.h,v 1.12 2005/03/12 13:37:49 damien Exp $ */ /*- * Copyright (c) 2004, 2005 @@ -82,7 +82,7 @@ struct ipw_tx_radiotap_header { ((1 << IEEE80211_RADIOTAP_FLAGS) | \ (1 << IEEE80211_RADIOTAP_CHANNEL)) -#define IPW_MAX_NSEG 6 +#define IPW_MAX_NSEG 1 struct ipw_softc { struct device sc_dev; 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); |