]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
macvtap: zerocopy: fix offset calculation when building skb
authorJason Wang <jasowang@redhat.com>
Wed, 2 May 2012 03:41:30 +0000 (11:41 +0800)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 25 Jul 2012 03:11:02 +0000 (04:11 +0100)
commitc1b5b21b540f22a8e008d30545c044a6c949b47b
tree2727f790a6e85730b8d2e8c07137b66767d9017b
parent9046e979413d3a05057ae9995cebf93eed24f80c
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 <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/macvtap.c