Make sure to store dma address of RX buffer in little endian form.
This fixes the last bug which keeps ste(4) from working on sparc64.
This commit is contained in:
parent
50b787cde8
commit
e75e4842d3
@ -1573,12 +1573,14 @@ ste_init_rx_list(struct ste_softc *sc)
|
||||
return (error);
|
||||
if (i == (STE_RX_LIST_CNT - 1)) {
|
||||
cd->ste_rx_chain[i].ste_next = &cd->ste_rx_chain[0];
|
||||
ld->ste_rx_list[i].ste_next = ld->ste_rx_list_paddr +
|
||||
(sizeof(struct ste_desc_onefrag) * 0);
|
||||
ld->ste_rx_list[i].ste_next =
|
||||
htole32(ld->ste_rx_list_paddr +
|
||||
(sizeof(struct ste_desc_onefrag) * 0));
|
||||
} else {
|
||||
cd->ste_rx_chain[i].ste_next = &cd->ste_rx_chain[i + 1];
|
||||
ld->ste_rx_list[i].ste_next = ld->ste_rx_list_paddr +
|
||||
(sizeof(struct ste_desc_onefrag) * (i + 1));
|
||||
ld->ste_rx_list[i].ste_next =
|
||||
htole32(ld->ste_rx_list_paddr +
|
||||
(sizeof(struct ste_desc_onefrag) * (i + 1)));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user