virtionet: convert to SKB paged frag API.
authorIan Campbell <Ian.Campbell@citrix.com>
Wed, 21 Sep 2011 21:53:27 +0000 (21:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Sep 2011 20:04:18 +0000 (16:04 -0400)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: virtualization@lists.linux-foundation.org
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c

index 4f09f88..d6e93ba 100644 (file)
@@ -149,7 +149,7 @@ static void set_skb_frag(struct sk_buff *skb, struct page *page,
        f = &skb_shinfo(skb)->frags[i];
        f->size = min((unsigned)PAGE_SIZE - offset, *len);
        f->page_offset = offset;
-       f->page = page;
+       __skb_frag_set_page(f, page);
 
        skb->data_len += f->size;
        skb->len += f->size;