From: Jason Wang Date: Wed, 2 May 2012 03:41:30 +0000 (+0800) Subject: macvtap: zerocopy: fix offset calculation when building skb X-Git-Tag: v3.2.24~93 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1b5b21b540f22a8e008d30545c044a6c949b47b;p=pandora-kernel.git macvtap: zerocopy: fix offset calculation when building skb commit 3afc9621f15701c557e60f61eba9242bac2771dd upstream. This patch fixes the offset calculation when building skb: - offset1 were used as skb data offset not vector offset - reset offset to zero only when we advance to next vector Signed-off-by: Jason Wang Signed-off-by: Michael S. Tsirkin Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed