summaryrefslogtreecommitdiffstats
path: root/sys/dev/bce
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2006-10-19 08:01:43 +0000
committerscottl <scottl@FreeBSD.org>2006-10-19 08:01:43 +0000
commita910ffdb2ba6d23b6955f5a2d6192d4ea230c856 (patch)
tree016f3145a77597d8cac6379df7f2c7568f531f70 /sys/dev/bce
parent89a6f9724e8cddd8cd7cd25304c8b56bee1495c1 (diff)
downloadFreeBSD-src-a910ffdb2ba6d23b6955f5a2d6192d4ea230c856.zip
FreeBSD-src-a910ffdb2ba6d23b6955f5a2d6192d4ea230c856.tar.gz
I can't find any reason why an 8 byte alignment should be enforced on rx
and tx buffers. Fix it there, and also don't have it be overridden by the parent tag.
Diffstat (limited to 'sys/dev/bce')
-rw-r--r--sys/dev/bce/if_bce.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/bce/if_bce.c b/sys/dev/bce/if_bce.c
index 1822e24..0eacbe2 100644
--- a/sys/dev/bce/if_bce.c
+++ b/sys/dev/bce/if_bce.c
@@ -2175,7 +2175,7 @@ bce_dma_alloc(device_t dev)
* Allocate the parent bus DMA tag appropriate for PCI.
*/
if (bus_dma_tag_create(NULL, /* parent */
- BCE_DMA_ALIGN, /* alignment */
+ 1, /* alignment */
BCE_DMA_BOUNDARY, /* boundary */
sc->max_bus_addr, /* lowaddr */
BUS_SPACE_MAXADDR, /* highaddr */
@@ -2378,7 +2378,7 @@ bce_dma_alloc(device_t dev)
/* Create a DMA tag for TX mbufs. */
if (bus_dma_tag_create(
sc->parent_tag, /* parent */
- BCE_DMA_ALIGN, /* alignment */
+ 1, /* alignment */
BCE_DMA_BOUNDARY, /* boundary */
sc->max_bus_addr, /* lowaddr */
BUS_SPACE_MAXADDR, /* highaddr */
@@ -2476,7 +2476,7 @@ bce_dma_alloc(device_t dev)
*/
if (bus_dma_tag_create(
sc->parent_tag, /* parent */
- BCE_DMA_ALIGN, /* alignment */
+ 1, /* alignment */
BCE_DMA_BOUNDARY, /* boundary */
sc->max_bus_addr, /* lowaddr */
BUS_SPACE_MAXADDR, /* highaddr */
OpenPOWER on IntegriCloud