net: use skb_copy_datagram_from_iovec() in zerocopy_sg_from_iovec()
authorJason Wang <jasowang@redhat.com>
Tue, 6 Aug 2013 09:45:08 +0000 (17:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Aug 2013 23:52:38 +0000 (16:52 -0700)
commit3d9953a2ef2182d56e268742259b11dedb8e281d
treea20e91bcc6cd02c8aaa6194e4be24bde9db7fb80
parent0433547aa7443cefc89d9b533169bdc50f1206b8
net: use skb_copy_datagram_from_iovec() in zerocopy_sg_from_iovec()

Use skb_copy_datagram_from_iovec() to avoid code duplication and make it easy to
be read. Also we can do the skipping inside the zero-copy loop.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/datagram.c