diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-09-22 16:28:29 +0200 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2016-09-27 17:54:22 +0800 |
commit | a16d8ef54b8274ce9e7d7d6377a5a11f3c74668b (patch) | |
tree | 30af4a94919be26c4b6af25e6e85dc1b77d298d3 /hw/net/mcf_fec.c | |
parent | 070c4b92b8cd5390889716677a0b92444d6e087a (diff) |
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/net/mcf_fec.c')
-rw-r--r-- | hw/net/mcf_fec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/net/mcf_fec.c b/hw/net/mcf_fec.c index d31fea1f18..dc61bac2fc 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; |