summary refs log tree commit diff stats
path: root/scripts/qapi-commands.py
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2015-07-28 11:02:54 +1000
committerStefan Hajnoczi <stefanha@redhat.com>2015-07-28 11:27:53 +0100
commitff1d2ac949dc94d8a0e71fd46939fb69c2ef075b (patch)
tree4adfaaab78b2d10798171a6727c952e458fe69f2 /scripts/qapi-commands.py
parentf8787f8723eaca1be99e3b1873e54de163fffa93 (diff)
downloadfocaccia-qemu-ff1d2ac949dc94d8a0e71fd46939fb69c2ef075b.tar.gz
focaccia-qemu-ff1d2ac949dc94d8a0e71fd46939fb69c2ef075b.zip
hw/net: handle flow control in mcf_fec driver receiver
The network mcf_fec driver emulated receive side method is not dealing
with network queue flow control properly.

Modify the receive side to check if we have enough space in the
descriptors to store the current packet. If not we process none of it
and return 0. When the guest frees up some buffers through its descriptors
we signal the qemu net layer to send more packets.

[Fixed coding style: 4-space indent and curly braces on if statement.
--Stefan]

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Message-id: 1438045374-10358-1-git-send-email-gerg@uclinux.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions