mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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:
committed by
Jason Wang
parent
070c4b92b8
commit
a16d8ef54b
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user