aboutsummaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2009-10-27 18:16:38 +0000
committerAnthony Liguori <aliguori@us.ibm.com>2009-11-09 08:43:02 -0600
commitcdd5cc12ba8cf0c068da319370bdd3ba45eaf7ac (patch)
tree6f1b669c8dcc886571eb1130f1a75f345300da5d /target-i386
parent839f368f2b3e4405c9847bf763bdaf3bc26f714d (diff)
virtio-net: split the has_buffers() logic from can_receive()
We should only return zero from receive() for a condition which we'll get notification of when it changes. Currently, we're returning zero if the guest driver is not ready, but we won't ever flush our queue when that status changes. Also, don't check buffer space in can_receive(), but instead just allow receive() to return zero when this condition occurs and have the caller handle queueing the packet. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'target-i386')
0 files changed, 0 insertions, 0 deletions