macvtap: zerocopy: fix truesize underestimation
authorJason Wang <jasowang@redhat.com>
Wed, 2 May 2012 03:41:44 +0000 (11:41 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 2 May 2012 15:22:19 +0000 (18:22 +0300)
commit4ef67ebedffa44ed9939b34708ac2fee06d2f65f
treeeb563d26c7ef85a137a14accaa24a8f4a637d2f7
parent3afc9621f15701c557e60f61eba9242bac2771dd
macvtap: zerocopy: fix truesize underestimation

As the skb fragment were pinned/built from user pages, we should
account the page instead of length for truesize.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/net/macvtap.c