net: unbreak tap networking
commit7ca0f75ae84db344455041048c41c6bec05f6147
authorMark McLoughlin <markmc@redhat.com>
Tue, 28 Apr 2009 08:48:20 +0000 (28 09:48 +0100)
committerAvi Kivity <avi@redhat.com>
Tue, 28 Apr 2009 08:58:00 +0000 (28 11:58 +0300)
treedf4cf804e33ad1d37c57ec014079b0dc51a77f26
parent8f7a30dbc40a1d4c09275566f9ed9647ed1ee50f
net: unbreak tap networking

A recent merge broke tap networking because qemu_send_packet()
now always returns -EAGAIN causing tap to try and resend the
same packet forever.

Fix by having qemu_send_packet() return the status from the
qemu_deliver_packet() of the packet in question, rather than
any packets which happened to have been queued up during the
delivery of the original packet.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
net.c