Fix mxge_submit_8rx() to behave like the comments says it does,

and ensure that it copies at most 32 bytes at a time.
This commit is contained in:
Andrew Gallatin 2006-11-29 15:30:39 +00:00
parent 57d90e7fbe
commit a1480dfbad
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164751

View File

@ -1705,7 +1705,9 @@ mxge_submit_8rx(volatile mcp_kreq_ether_recv_t *dst,
low = src->addr_low;
src->addr_low = 0xffffffff;
mxge_pio_copy(dst, src, 8 * sizeof (*src));
mxge_pio_copy(dst, src, 4 * sizeof (*src));
mb();
mxge_pio_copy(dst + 4, src + 4, 4 * sizeof (*src));
mb();
dst->addr_low = low;
mb();