diff options
author | Jason Wang <jasowang@redhat.com> | 2012-05-02 11:41:30 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-02 10:30:33 -0700 |
commit | 2b9ec261e3f247dc84b50263564778bcbefec79b (patch) | |
tree | 9947fa0a89b2d66359dc052e576e683029d6285e /lib/string_helpers.c | |
parent | 6c9e62877051270d20e34c0c3652e36f1cc37c04 (diff) |
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>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions