]> Pileus Git - ~andy/linux/commit
vhost-net: skip head management if no outstanding
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 6 Dec 2012 15:00:18 +0000 (17:00 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 6 Dec 2012 15:09:18 +0000 (17:09 +0200)
commitcedb9bdce099206290a2bdd02ce47a7b253b6a84
treee30b69a7b94c6fe30272549f3c3ad6faf10bd37f
parent1280c27f8e29acf4af2da914e80ec27c3dbd5c01
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: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/net.c