summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2013-08-06 17:45:05 +0800
committerDavid S. Miller <davem@davemloft.net>2013-08-07 16:52:35 -0700
commit0a57ec62dfa4b639d86aba60c236904def1d0356 (patch)
tree7909a889ea9d1dfc70cbda07f0cfb76afe339b36 /net/core
parentc3bdeb5c7cc073ccf5ff9624642022a8613a956e (diff)
net: use skb_fill_page_desc() in zerocopy_sg_from_iovec()
Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/datagram.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/datagram.c b/net/core/datagram.c
index f987faef21ce..bec08672644a 100644
--- a/net/core/datagram.c
+++ b/net/core/datagram.c
@@ -652,8 +652,7 @@ int zerocopy_sg_from_iovec(struct sk_buff *skb, const struct iovec *from,
while (len) {
int off = base & ~PAGE_MASK;
int size = min_t(int, len, PAGE_SIZE - off);
- __skb_fill_page_desc(skb, i, page[i], off, size);
- skb_shinfo(skb)->nr_frags++;
+ skb_fill_page_desc(skb, i, page[i], off, size);
/* increase sk_wmem_alloc */
base += size;
len -= size;