From: Michael S. Tsirkin Date: Thu, 1 Nov 2012 09:16:51 +0000 (+0000) Subject: vhost-net: select tx zero copy dynamically X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~473 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eaae8132ef6032ffe612e789e8ff145dcf5bc2bb;p=pandora-kernel.git vhost-net: select tx zero copy dynamically Even when vhost-net is in zero-copy transmit mode, net core might still decide to copy the skb later which is somewhat slower than a copy in user context: data copy overhead is added to the cost of page pin/unpin. The result is that enabling tx zero copy option leads to higher CPU utilization for guest to guest and guest to host traffic. To fix this, suppress zero copy tx after a given number of packets triggered late data copy. Re-enable periodically to detect workload changes. Signed-off-by: Michael S. Tsirkin Signed-off-by: David S. Miller --- Reading git-diff-tree failed