diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2020-01-29 20:27:49 +1100 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2020-03-03 18:04:47 +0800 |
commit | bae112b80c9c42cea21ee7623c283668c3451c2e (patch) | |
tree | 11e251c289243b6c1dc1ac855f8f8752a1b1a1f0 /qemu-io-cmds.c | |
parent | ada74315270d1dcabf4c9d4fece19df7ef5b9577 (diff) | |
download | qemu-bae112b80c9c42cea21ee7623c283668c3451c2e.zip qemu-bae112b80c9c42cea21ee7623c283668c3451c2e.tar.gz qemu-bae112b80c9c42cea21ee7623c283668c3451c2e.tar.bz2 |
dp8393x: Don't clobber packet checksum
A received packet consumes pkt_size bytes in the buffer and the frame
checksum that's appended to it consumes another 4 bytes. The Receive
Buffer Address register takes the former quantity into account but
not the latter. So the next packet written to the buffer overwrites
the frame checksum. Fix this.
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'qemu-io-cmds.c')
0 files changed, 0 insertions, 0 deletions