diff options
author | Ian Campbell <Ian.Campbell@citrix.com> | 2011-09-21 21:53:21 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-09-22 16:04:16 -0400 |
commit | 4fee78b49ca0a3b7ad8fd71ba0b7faed746875f1 (patch) | |
tree | a935647cd3a4fe9a87ef468dc77f52779f8c0b4a /drivers/net/ethernet/sun/sungem.c | |
parent | f722380d25516aa9934014de7c8d7284da38aa1f (diff) |
sungem: convert to SKB paged frag API.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sun/sungem.c')
-rw-r--r-- | drivers/net/ethernet/sun/sungem.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/ethernet/sun/sungem.c b/drivers/net/ethernet/sun/sungem.c index 11fd299f5b9..2bfa1715fe2 100644 --- a/drivers/net/ethernet/sun/sungem.c +++ b/drivers/net/ethernet/sun/sungem.c @@ -1071,10 +1071,8 @@ static netdev_tx_t gem_start_xmit(struct sk_buff *skb, u64 this_ctrl; len = this_frag->size; - mapping = pci_map_page(gp->pdev, - this_frag->page, - this_frag->page_offset, - len, PCI_DMA_TODEVICE); + mapping = skb_frag_dma_map(&gp->pdev->dev, this_frag, + 0, len, PCI_DMA_TODEVICE); this_ctrl = ctrl; if (frag == skb_shinfo(skb)->nr_frags - 1) this_ctrl |= TXDCTRL_EOF; |