aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6_output.c
diff options
context:
space:
mode:
authorIan Campbell <Ian.Campbell@citrix.com>2011-08-22 19:45:00 -0400
committerDavid S. Miller <davem@davemloft.net>2011-08-24 20:52:12 -0400
commit408dadf03fe365f12f85d5c3d959f4bb888b9f3e (patch)
treec88f21b532c8c1d8f20f37a097ceaad93ee75741 /net/ipv6/ip6_output.c
parentaff65da0f1be5daec44231972b6b5fc45bfa7a58 (diff)
net: ipv6: convert to SKB frag APIs
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> Cc: "Pekka Savola (ipv6)" <pekkas@netcore.fi> Cc: James Morris <jmorris@namei.org> Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org> Cc: Patrick McHardy <kaber@trash.net> Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_output.c')
-rw-r--r--net/ipv6/ip6_output.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
index 4c882cf4e8a1..835c04b5239f 100644
--- a/net/ipv6/ip6_output.c
+++ b/net/ipv6/ip6_output.c
@@ -1480,13 +1480,13 @@ alloc_new_skb:
1480 if (page && (left = PAGE_SIZE - off) > 0) { 1480 if (page && (left = PAGE_SIZE - off) > 0) {
1481 if (copy >= left) 1481 if (copy >= left)
1482 copy = left; 1482 copy = left;
1483 if (page != frag->page) { 1483 if (page != skb_frag_page(frag)) {
1484 if (i == MAX_SKB_FRAGS) { 1484 if (i == MAX_SKB_FRAGS) {
1485 err = -EMSGSIZE; 1485 err = -EMSGSIZE;
1486 goto error; 1486 goto error;
1487 } 1487 }
1488 get_page(page);
1489 skb_fill_page_desc(skb, i, page, sk->sk_sndmsg_off, 0); 1488 skb_fill_page_desc(skb, i, page, sk->sk_sndmsg_off, 0);
1489 skb_frag_ref(skb, i);
1490 frag = &skb_shinfo(skb)->frags[i]; 1490 frag = &skb_shinfo(skb)->frags[i];
1491 } 1491 }
1492 } else if(i < MAX_SKB_FRAGS) { 1492 } else if(i < MAX_SKB_FRAGS) {
@@ -1506,7 +1506,8 @@ alloc_new_skb:
1506 err = -EMSGSIZE; 1506 err = -EMSGSIZE;
1507 goto error; 1507 goto error;
1508 } 1508 }
1509 if (getfrag(from, page_address(frag->page)+frag->page_offset+frag->size, offset, copy, skb->len, skb) < 0) { 1509 if (getfrag(from, skb_frag_address(frag)+frag->size,
1510 offset, copy, skb->len, skb) < 0) {
1510 err = -EFAULT; 1511 err = -EFAULT;
1511 goto error; 1512 goto error;
1512 } 1513 }