aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Campbell <Ian.Campbell@citrix.com>2011-08-30 20:46:54 -0400
committerDavid S. Miller <davem@davemloft.net>2011-09-15 15:34:59 -0400
commitf327358ab2cdfa534b2dc89e9dd2266c0f61f587 (patch)
tree02f2ed0089e3105b40eab7dc3453487d7c3f33a0
parent8838a5381149ff69e23dc13de7c81b28ac688e2e (diff)
jme: convert to SKB paged frag API.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Cc: Guo-Fu Tseng <cooldavid@cooldavid.org> Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/jme.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/jme.c b/drivers/net/ethernet/jme.c
index a869ee47dde6..48a0a23f342f 100644
--- a/drivers/net/ethernet/jme.c
+++ b/drivers/net/ethernet/jme.c
@@ -1928,8 +1928,9 @@ jme_map_tx_skb(struct jme_adapter *jme, struct sk_buff *skb, int idx)
1928 ctxdesc = txdesc + ((idx + i + 2) & (mask)); 1928 ctxdesc = txdesc + ((idx + i + 2) & (mask));
1929 ctxbi = txbi + ((idx + i + 2) & (mask)); 1929 ctxbi = txbi + ((idx + i + 2) & (mask));
1930 1930
1931 jme_fill_tx_map(jme->pdev, ctxdesc, ctxbi, frag->page, 1931 jme_fill_tx_map(jme->pdev, ctxdesc, ctxbi,
1932 frag->page_offset, frag->size, hidma); 1932 skb_frag_page(frag),
1933 frag->page_offset, frag->size, hidma);
1933 } 1934 }
1934 1935
1935 len = skb_is_nonlinear(skb) ? skb_headlen(skb) : skb->len; 1936 len = skb_is_nonlinear(skb) ? skb_headlen(skb) : skb->len;