net: disable receiving if client returns zero
authorMark McLoughlin <markmc@redhat.com>
Tue, 27 Oct 2009 18:16:36 +0000 (18:16 +0000)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 9 Nov 2009 14:43:02 +0000 (08:43 -0600)
commit893379efd0e1b84ceb0c42a713293f3dbd27b1bd
treebc0bce61704492223a353a80e63101e868fc05c0
parentbe1636b3ab36b3decdd0eb35b3b09a998060104f
net: disable receiving if client returns zero

If a receiver returns zero, that means its queue is full and it will
notify us when room is available using qemu_flush_queued_packets().

Take note of that and disable that receiver until it flushes its queue.

This is a first step towards allowing can_receive() handlers to return
true even if no buffer space is available.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
net.c
net.h