From: Ian Campbell Date: Wed, 31 Aug 2011 00:46:59 +0000 (+0000) Subject: niu: convert to SKB paged frag API. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=134b413ca3a1055608495bbb60caeb754a073766;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git niu: convert to SKB paged frag API. Signed-off-by: Ian Campbell Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/sun/niu.c b/drivers/net/ethernet/sun/niu.c index 3c9ef1c196a9..cad58f26c47c 100644 --- a/drivers/net/ethernet/sun/niu.c +++ b/drivers/net/ethernet/sun/niu.c @@ -3290,11 +3290,8 @@ static void niu_rx_skb_append(struct sk_buff *skb, struct page *page, u32 offset, u32 size) { int i = skb_shinfo(skb)->nr_frags; - skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; - frag->page = page; - frag->page_offset = offset; - frag->size = size; + __skb_fill_page_desc(skb, i, page, offset, size); skb->len += size; skb->data_len += size; @@ -6737,7 +6734,7 @@ static netdev_tx_t niu_start_xmit(struct sk_buff *skb, skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; len = frag->size; - mapping = np->ops->map_page(np->device, frag->page, + mapping = np->ops->map_page(np->device, skb_frag_page(frag), frag->page_offset, len, DMA_TO_DEVICE);