From: Michael S. Tsirkin Date: Thu, 6 Dec 2012 15:00:18 +0000 (+0200) Subject: vhost-net: skip head management if no outstanding X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~58^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cedb9bdce099206290a2bdd02ce47a7b253b6a84;p=pandora-kernel.git 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 --- Reading git-diff-tree failed