diff options
author | Greg Ungerer <gerg@uclinux.org> | 2015-07-28 11:02:54 +1000 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2015-07-28 11:27:53 +0100 |
commit | ff1d2ac949dc94d8a0e71fd46939fb69c2ef075b (patch) | |
tree | 4adfaaab78b2d10798171a6727c952e458fe69f2 /hw/net/xen_nic.c | |
parent | f8787f8723eaca1be99e3b1873e54de163fffa93 (diff) | |
download | qemu-ff1d2ac949dc94d8a0e71fd46939fb69c2ef075b.zip qemu-ff1d2ac949dc94d8a0e71fd46939fb69c2ef075b.tar.gz qemu-ff1d2ac949dc94d8a0e71fd46939fb69c2ef075b.tar.bz2 |
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 'hw/net/xen_nic.c')
0 files changed, 0 insertions, 0 deletions