aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-09-22 16:28:29 +0200
committerJason Wang <jasowang@redhat.com>2016-09-27 17:54:22 +0800
commita16d8ef54b8274ce9e7d7d6377a5a11f3c74668b (patch)
tree30af4a94919be26c4b6af25e6e85dc1b77d298d3 /hw
parent070c4b92b8cd5390889716677a0b92444d6e087a (diff)
downloadqemu-a16d8ef54b8274ce9e7d7d6377a5a11f3c74668b.zip
qemu-a16d8ef54b8274ce9e7d7d6377a5a11f3c74668b.tar.gz
qemu-a16d8ef54b8274ce9e7d7d6377a5a11f3c74668b.tar.bz2
mcf_fec: fix error in qemu_send_packet argument
This uses the wrong frame size for packets composed of multiple descriptors. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/net/mcf_fec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/mcf_fec.c b/hw/net/mcf_fec.c
index d31fea1..dc61bac 100644
--- a/hw/net/mcf_fec.c
+++ b/hw/net/mcf_fec.c
@@ -177,7 +177,7 @@ static void mcf_fec_do_tx(mcf_fec_state *s)
if (bd.flags & FEC_BD_L) {
/* Last buffer in frame. */
DPRINTF("Sending packet\n");
- qemu_send_packet(qemu_get_queue(s->nic), frame, len);
+ qemu_send_packet(qemu_get_queue(s->nic), frame, frame_size);
ptr = frame;
frame_size = 0;
s->eir |= FEC_INT_TXF;