mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
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:
parent
57d90e7fbe
commit
a1480dfbad
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164751
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user