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>
This commit is contained in:
parent
070c4b92b8
commit
a16d8ef54b
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue