From: Jason Wang Date: Mon, 2 Sep 2013 08:40:59 +0000 (+0800) Subject: vhost_net: determine whether or not to use zerocopy at one time X-Git-Tag: v3.12-rc1~132^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce21a02913dc79205485637b6e0927a4c800c4a4;p=pandora-kernel.git vhost_net: determine whether or not to use zerocopy at one time Currently, even if the packet length is smaller than VHOST_GOODCOPY_LEN, if upend_idx != done_idx we still set zcopy_used to true and rollback this choice later. This could be avoided by determining zerocopy once by checking all conditions at one time before. Signed-off-by: Jason Wang Signed-off-by: David S. Miller --- Reading git-diff-tree failed