Skip to content
Commit 0aea51c3 authored by Amit Shah's avatar Amit Shah Committed by Rusty Russell
Browse files

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: default avatarAmit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (modified)
parent 48925e37
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment