commit | 7cc76f51508219a74dca835745e4f84393820017 | [log] [tgz] |
---|---|---|
author | Jason Wang <jasowang@redhat.com> | Thu Nov 20 16:31:05 2014 +0800 |
committer | David S. Miller <davem@davemloft.net> | Fri Nov 21 14:59:19 2014 -0500 |
tree | ce85b76a4947f86157ae0272dda1e67fd766fea3 | |
parent | 914efb02befeedbd71a6f115c9d2fb38a34af04d [diff] |
macvtap: advance iov iterator when needed in macvtap_put_user() When mergeable buffer is used, vnet_hdr_sz is greater than sizeof struct virtio_net_hdr. So we need advance the iov iterators in this case. Fixes 6c36d2e26cda1ad3e2c4b90dd843825fc62fe5b4 ("macvtap: Use iovec iterators") Cc: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Jason Wang <jasowang@redhat.com> Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>