mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-30 13:31:52 -06: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:
parent
070c4b92b8
commit
a16d8ef54b
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ static void mcf_fec_do_tx(mcf_fec_state *s)
|
||||||
if (bd.flags & FEC_BD_L) {
|
if (bd.flags & FEC_BD_L) {
|
||||||
/* Last buffer in frame. */
|
/* Last buffer in frame. */
|
||||||
DPRINTF("Sending packet\n");
|
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;
|
ptr = frame;
|
||||||
frame_size = 0;
|
frame_size = 0;
|
||||||
s->eir |= FEC_INT_TXF;
|
s->eir |= FEC_INT_TXF;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue