From e06c7065423a610b7322c9c47863b5cfd8c6210e Mon Sep 17 00:00:00 2001 From: Scott Long Date: Thu, 19 Oct 2006 08:01:43 +0000 Subject: [PATCH] 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. --- sys/dev/bce/if_bce.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/bce/if_bce.c b/sys/dev/bce/if_bce.c index 1822e240217b..0eacbe2603ba 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 */