virtio_net: Check for room in the vq before adding buffer

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)
This commit is contained in:
Amit Shah 2009-08-26 14:58:28 +05:30 • committed by Rusty Russell
commit 0aea51c37f