mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-05 12:56:08 +00:00
The alignment parameter to busdma must be a power of two, while the if_bfe
driver was trying to use an arbitrary rx/tx ring size of the value. Change to using unrestricted values for alignment and boundary instead.
This commit is contained in:
parent
a421d57149
commit
a6456c02ba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158093
@ -215,7 +215,7 @@ bfe_dma_alloc(device_t dev)
|
||||
|
||||
/* tag for TX ring */
|
||||
error = bus_dma_tag_create(sc->bfe_parent_tag,
|
||||
BFE_TX_LIST_SIZE, BFE_TX_LIST_SIZE,
|
||||
1, 0,
|
||||
BUS_SPACE_MAXADDR,
|
||||
BUS_SPACE_MAXADDR,
|
||||
NULL, NULL,
|
||||
@ -233,7 +233,7 @@ bfe_dma_alloc(device_t dev)
|
||||
|
||||
/* tag for RX ring */
|
||||
error = bus_dma_tag_create(sc->bfe_parent_tag,
|
||||
BFE_RX_LIST_SIZE, BFE_RX_LIST_SIZE,
|
||||
1, 0,
|
||||
BUS_SPACE_MAXADDR,
|
||||
BUS_SPACE_MAXADDR,
|
||||
NULL, NULL,
|
||||
|
Loading…
Reference in New Issue
Block a user