diff options
author | Ian Campbell <Ian.Campbell@citrix.com> | 2011-10-05 04:28:52 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-10-06 01:36:01 +0400 |
commit | 011392224b4f6019c3b737f3dcb7c8f6fba41246 (patch) | |
tree | f55dbb6df0f59da7afe708a9ad1eae78b1a09c91 /drivers/net/ethernet/chelsio/cxgb/sge.c | |
parent | 6a930b9f163d7e6d9ef692e05616c4ede65038ec (diff) | |
download | linux-011392224b4f6019c3b737f3dcb7c8f6fba41246.tar.xz |
chelsio: convert to SKB paged frag API.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Divy Le Ray <divy@chelsio.com>
Cc: Dimitris Michailidis <dm@chelsio.com>
Cc: Casey Leedom <leedom@chelsio.com>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb/sge.c')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb/sge.c | 5 |
1 files 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; |