commit | 3d9953a2ef2182d56e268742259b11dedb8e281d | [log] [tgz] |
---|---|---|
author | Jason Wang <jasowang@redhat.com> | Tue Aug 06 17:45:08 2013 +0800 |
committer | David S. Miller <davem@davemloft.net> | Wed Aug 07 16:52:38 2013 -0700 |
tree | a20e91bcc6cd02c8aaa6194e4be24bde9db7fb80 | |
parent | 0433547aa7443cefc89d9b533169bdc50f1206b8 [diff] |
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>