From: Ian Campbell Date: Mon, 29 Aug 2011 23:18:24 +0000 (+0000) Subject: bna: convert to SKB paged frag API. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=4d5b1a674e3426aa53191978631472518da71852;p=openwrt%2Fstaging%2Fblogic.git bna: convert to SKB paged frag API. Signed-off-by: Ian Campbell Cc: Rasesh Mody Cc: Debashis Dutt Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c index 6ad4b477a4ef..181561c13c50 100644 --- a/drivers/net/ethernet/brocade/bna/bnad.c +++ b/drivers/net/ethernet/brocade/bna/bnad.c @@ -2703,8 +2703,8 @@ bnad_start_xmit(struct sk_buff *skb, struct net_device *netdev) BUG_ON(!(size <= BFI_TX_MAX_DATA_PER_VECTOR)); txqent->vector[vect_id].length = htons(size); - dma_addr = dma_map_page(&bnad->pcidev->dev, frag->page, - frag->page_offset, size, DMA_TO_DEVICE); + dma_addr = skb_frag_dma_map(&bnad->pcidev->dev, frag, + 0, size, DMA_TO_DEVICE); dma_unmap_addr_set(&unmap_q->unmap_array[unmap_prod], dma_addr, dma_addr); BNA_SET_DMA_ADDR(dma_addr, &txqent->vector[vect_id].host_addr);