virtio_net: Check for room in the vq before adding buffer
authorAmit Shah <amit.shah@redhat.com>
Wed, 26 Aug 2009 09:28:28 +0000 (14:58 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 24 Sep 2009 00:29:21 +0000 (09:59 +0930)
Saves us one cycle of alloc-add-free if the queue was full.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (modified)

No differences found