From 893379efd0e1b84ceb0c42a713293f3dbd27b1bd Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Tue, 27 Oct 2009 18:16:36 +0000 Subject: 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 Signed-off-by: Anthony Liguori --- net.h | 1 + 1 file changed, 1 insertion(+) (limited to 'net.h') diff --git a/net.h b/net.h index 338d84a..4ffce91 100644 --- a/net.h +++ b/net.h @@ -61,6 +61,7 @@ struct VLANClientState { char *model; char *name; char info_str[256]; + unsigned receive_disabled : 1; }; struct VLANState { -- cgit v1.1