Specify BCE_RX_BUF_ALIGN alignment for RX buffers. All bce(4)

controllers require RX buffers aligned on BCE_RX_BUF_ALIGN bytes.

Reviewed by:	davidch
This commit is contained in:
Pyun YongHyeon 2010-07-19 23:48:03 +00:00
parent 3016d3fe4e
commit ad09ad06bc
2 changed files with 2 additions and 1 deletions

View File

@ -3424,7 +3424,7 @@ bce_dma_alloc(device_t dev)
"size = 0x%jX)\n", __FUNCTION__, (uintmax_t) max_size,
max_segments, (uintmax_t) max_seg_size);
if (bus_dma_tag_create(sc->parent_tag, 1,
if (bus_dma_tag_create(sc->parent_tag, BCE_RX_BUF_ALIGN,
BCE_DMA_BOUNDARY, sc->max_bus_addr, BUS_SPACE_MAXADDR, NULL, NULL,
max_size, max_segments, max_seg_size, 0, NULL, NULL,
&sc->rx_mbuf_tag)) {

View File

@ -6316,6 +6316,7 @@ struct fw_info {
#define BCE_DMA_ALIGN 8
#define BCE_DMA_BOUNDARY 0
#define BCE_RX_BUF_ALIGN 16
#define BCE_MAX_CONTEXT 4