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:
parent
3016d3fe4e
commit
ad09ad06bc
@ -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)) {
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user