提交 6adaaac7 编写于 作者: I Ian Campbell 提交者: David S. Miller

atl1e: convert to SKB paged frag API.

Signed-off-by: NIan Campbell <ian.campbell@citrix.com>
Cc: Jay Cliburn <jcliburn@gmail.com>
Cc: Chris Snook <chris.snook@gmail.com>
Cc: Jie Yang <jie.yang@atheros.com>
Cc: netdev@vger.kernel.org
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8d1bb865
...@@ -1765,12 +1765,11 @@ static void atl1e_tx_map(struct atl1e_adapter *adapter, ...@@ -1765,12 +1765,11 @@ static void atl1e_tx_map(struct atl1e_adapter *adapter,
MAX_TX_BUF_LEN : buf_len; MAX_TX_BUF_LEN : buf_len;
buf_len -= tx_buffer->length; buf_len -= tx_buffer->length;
tx_buffer->dma = tx_buffer->dma = skb_frag_dma_map(&adapter->pdev->dev,
pci_map_page(adapter->pdev, frag->page, frag,
frag->page_offset + (i * MAX_TX_BUF_LEN),
(i * MAX_TX_BUF_LEN), tx_buffer->length,
tx_buffer->length, PCI_DMA_TODEVICE);
PCI_DMA_TODEVICE);
ATL1E_SET_PCIMAP_TYPE(tx_buffer, ATL1E_TX_PCIMAP_PAGE); ATL1E_SET_PCIMAP_TYPE(tx_buffer, ATL1E_TX_PCIMAP_PAGE);
use_tpd->buffer_addr = cpu_to_le64(tx_buffer->dma); use_tpd->buffer_addr = cpu_to_le64(tx_buffer->dma);
use_tpd->word2 = (use_tpd->word2 & (~TPD_BUFLEN_MASK)) | use_tpd->word2 = (use_tpd->word2 & (~TPD_BUFLEN_MASK)) |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册