diff options
author | Ian Campbell <Ian.Campbell@citrix.com> | 2011-08-22 19:44:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-24 20:52:11 -0400 |
commit | ea2ab69379a941c6f8884e290fdd28c93936a778 (patch) | |
tree | c02aa9c5ed66b1640b54bb6b763d131b9419be29 /net/core/pktgen.c | |
parent | 15133fbbb91ae695f153fb48daa6a1a8af4a5032 (diff) |
net: convert core to skb paged frag APIs
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/pktgen.c')
-rw-r--r-- | net/core/pktgen.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index e35a6fbb8110..796044ac0bf3 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c | |||
@@ -2602,8 +2602,7 @@ static void pktgen_finalize_skb(struct pktgen_dev *pkt_dev, struct sk_buff *skb, | |||
2602 | if (!pkt_dev->page) | 2602 | if (!pkt_dev->page) |
2603 | break; | 2603 | break; |
2604 | } | 2604 | } |
2605 | skb_shinfo(skb)->frags[i].page = pkt_dev->page; | 2605 | skb_frag_set_page(skb, i, pkt_dev->page); |
2606 | get_page(pkt_dev->page); | ||
2607 | skb_shinfo(skb)->frags[i].page_offset = 0; | 2606 | skb_shinfo(skb)->frags[i].page_offset = 0; |
2608 | /*last fragment, fill rest of data*/ | 2607 | /*last fragment, fill rest of data*/ |
2609 | if (i == (frags - 1)) | 2608 | if (i == (frags - 1)) |