From 011392224b4f6019c3b737f3dcb7c8f6fba41246 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Wed, 5 Oct 2011 00:28:52 +0000 Subject: [PATCH] chelsio: convert to SKB paged frag API. Signed-off-by: Ian Campbell Cc: Divy Le Ray Cc: Dimitris Michailidis Cc: Casey Leedom Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller --- drivers/net/ethernet/chelsio/cxgb/sge.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb/sge.c b/drivers/net/ethernet/chelsio/cxgb/sge.c index e9a03fffef15..7cde425f2b84 100644 --- a/drivers/net/ethernet/chelsio/cxgb/sge.c +++ b/drivers/net/ethernet/chelsio/cxgb/sge.c @@ -1277,9 +1277,8 @@ static inline void write_tx_descs(struct adapter *adapter, struct sk_buff *skb, ce = q->centries; } - mapping = pci_map_page(adapter->pdev, frag->page, - frag->page_offset, frag->size, - PCI_DMA_TODEVICE); + mapping = skb_frag_dma_map(&adapter->pdev->dev, frag, 0, + frag->size, PCI_DMA_TODEVICE); desc_mapping = mapping; desc_len = frag->size; -- 2.20.1