Skip to content
Commit cedb9bdc authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

vhost-net: skip head management if no outstanding



For short packets zerocopy mode adds overhead
of managing heads which isn't necessary: we
could simly update used ring directly
same as with zerocopy disabled.

Things seem to run a bit faster if we detect
and bypass head management when zcopy isn't used.

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 1280c27f
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