aboutsummaryrefslogtreecommitdiffstats
path: root/net.h
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2009-10-27 18:16:36 +0000
committerAnthony Liguori <aliguori@us.ibm.com>2009-11-09 08:43:02 -0600
commit893379efd0e1b84ceb0c42a713293f3dbd27b1bd (patch)
treebc0bce61704492223a353a80e63101e868fc05c0 /net.h
parentbe1636b3ab36b3decdd0eb35b3b09a998060104f (diff)
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>
Diffstat (limited to 'net.h')
-rw-r--r--net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net.h b/net.h
index 338d84ad6..4ffce9109 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 {