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.5-rc1~109^2~146^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3afc9621f15701c557e60f61eba9242bac2771dd;p=pandora-kernel.git macvtap: zerocopy: fix offset calculation when building skb 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 --- Reading git-diff-tree failed