projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
787343a
)
macvtap: convert to SKB paged frag API.
author
Ian Campbell
<
[email protected]
>
Wed, 31 Aug 2011 00:46:56 +0000
(
00:46
+0000)
committer
David S. Miller
<
[email protected]
>
Thu, 15 Sep 2011 19:34:59 +0000
(15:34 -0400)
Signed-off-by: Ian Campbell <
[email protected]
>
Cc:
[email protected]
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/macvtap.c
patch
|
blob
|
history
diff --git
a/drivers/net/macvtap.c
b/drivers/net/macvtap.c
index ab96c319a240070112789b6ce0ceabd176dc170f..7c3f84acfdfbb9cb8d513a34f6c124c69c30342f 100644
(file)
--- a/
drivers/net/macvtap.c
+++ b/
drivers/net/macvtap.c
@@
-503,10
+503,10
@@
static int zerocopy_sg_from_iovec(struct sk_buff *skb, const struct iovec *from,
skb->truesize += len;
atomic_add(len, &skb->sk->sk_wmem_alloc);
while (len) {
- f = &skb_shinfo(skb)->frags[i];
- f->page = page[i];
- f->page_offset = base & ~PAGE_MASK;
-
f->size = min_t(int, len, PAGE_SIZE - f->page_offset
);
+ __skb_fill_page_desc(
+ skb, i, page[i],
+ base & ~PAGE_MASK,
+
min_t(int, len, PAGE_SIZE - f->page_offset)
);
skb_shinfo(skb)->nr_frags++;
/* increase sk_wmem_alloc */
base += f->size;