]> git.baikalelectronics.ru Git - kernel.git/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)
commit95e2efc7853014e22d94f7e178d91826db44cf25
treee30b69a7b94c6fe30272549f3c3ad6faf10bd37f
parent0f97eddf067693735628cca3d65c829b9cf4d2bd
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