Commit 01139222 authored by Ian Campbell's avatar Ian Campbell Committed by David S. Miller

chelsio: convert to SKB paged frag API.

Signed-off-by: default avatarIan 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: default avatarDavid S. Miller <davem@davemloft.net>
parent 6a930b9f
...@@ -1277,9 +1277,8 @@ static inline void write_tx_descs(struct adapter *adapter, struct sk_buff *skb, ...@@ -1277,9 +1277,8 @@ static inline void write_tx_descs(struct adapter *adapter, struct sk_buff *skb,
ce = q->centries; ce = q->centries;
} }
mapping = pci_map_page(adapter->pdev, frag->page, mapping = skb_frag_dma_map(&adapter->pdev->dev, frag, 0,
frag->page_offset, frag->size, frag->size, PCI_DMA_TODEVICE);
PCI_DMA_TODEVICE);
desc_mapping = mapping; desc_mapping = mapping;
desc_len = frag->size; desc_len = frag->size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment