OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
070c4b9
)
mcf_fec: fix error in qemu_send_packet argument
author
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 22 Sep 2016 14:28:29 +0000
(16:28 +0200)
committer
Jason Wang
<jasowang@redhat.com>
Tue, 27 Sep 2016 09:54:22 +0000
(17:54 +0800)
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>
hw/net/mcf_fec.c
patch
|
blob
|
history
diff --git
a/hw/net/mcf_fec.c
b/hw/net/mcf_fec.c
index
d31fea1
..
dc61bac
100644
(file)
--- 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;