diff options
author | Ian Campbell <Ian.Campbell@citrix.com> | 2011-09-21 17:53:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-09-22 16:04:18 -0400 |
commit | 86ee8130a46769f73f8f423f99dbf782a09f9233 (patch) | |
tree | f5b0260a2dcf4704c6410d1d686b75612895ec68 /drivers/net/virtio_net.c | |
parent | e4cb193f79fa201c74c11a87a5beab7c08818bad (diff) |
virtionet: convert to SKB paged frag API.
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>
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r-- | drivers/net/virtio_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 4f09f88f1c28..d6e93ba9ff47 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c | |||
@@ -149,7 +149,7 @@ static void set_skb_frag(struct sk_buff *skb, struct page *page, | |||
149 | f = &skb_shinfo(skb)->frags[i]; | 149 | f = &skb_shinfo(skb)->frags[i]; |
150 | f->size = min((unsigned)PAGE_SIZE - offset, *len); | 150 | f->size = min((unsigned)PAGE_SIZE - offset, *len); |
151 | f->page_offset = offset; | 151 | f->page_offset = offset; |
152 | f->page = page; | 152 | __skb_frag_set_page(f, page); |
153 | 153 | ||
154 | skb->data_len += f->size; | 154 | skb->data_len += f->size; |
155 | skb->len += f->size; | 155 | skb->len += f->size; |