Mark McLoughlin cdd5cc12ba 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>
2009-11-09 08:43:02 -06:00
..
2009-10-27 12:28:41 -05:00
2009-10-01 16:12:16 -05:00
2009-10-13 18:56:27 +00:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-07 08:54:54 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-07 08:54:54 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:28:41 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:28:52 -05:00
2009-10-27 12:28:52 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-12 09:42:31 -05:00
2009-10-01 16:12:16 -05:00
2009-10-05 09:32:49 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-09-18 14:04:36 +04:00
2009-09-10 19:48:00 +04:00
2009-10-27 12:28:57 -05:00
2009-10-07 08:54:54 -05:00
2009-10-05 09:32:39 -05:00
2009-09-11 11:10:06 -05:00
2009-10-01 16:12:16 -05:00
2009-10-07 08:54:54 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:28:52 -05:00
2009-10-05 09:32:39 -05:00
2009-10-27 12:28:57 -05:00
2009-10-24 19:22:56 +00:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-05 09:32:38 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-15 19:49:11 +02:00
2009-10-01 16:12:16 -05:00
2009-10-12 09:42:31 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-30 08:39:34 -05:00
2009-09-11 10:19:48 -05:00
2009-09-11 10:19:48 -05:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:28:53 -05:00
2009-10-27 12:28:53 -05:00
2009-10-27 12:28:53 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-30 09:42:36 -05:00
2009-10-27 12:28:43 -05:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:28:52 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-05 09:32:38 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:28:38 -05:00
2009-10-30 08:39:30 -05:00
2009-10-30 08:39:30 -05:00
2009-10-12 09:42:31 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-07 08:54:54 -05:00
2009-10-05 09:32:49 -05:00
2009-10-01 16:12:16 -05:00
2009-11-03 15:28:19 +01:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-09-20 14:58:02 +00:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-05 09:32:38 -05:00
2009-10-07 08:54:54 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-07 08:54:54 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-05 09:32:38 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-05 09:32:39 -05:00
2009-10-30 08:39:30 -05:00
2009-10-30 08:39:31 -05:00
2009-10-30 08:39:30 -05:00
2009-10-30 08:39:31 -05:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:28:55 -05:00
2009-10-01 16:12:16 -05:00
2009-10-27 12:28:57 -05:00
2009-09-12 07:36:22 +00:00
2009-09-20 08:02:28 +00:00
2009-10-27 12:28:48 -05:00
2009-10-05 09:32:38 -05:00
2009-11-09 08:43:02 -06:00
2009-10-01 16:12:16 -05:00
2009-10-30 08:39:26 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00
2009-10-01 16:12:16 -05:00