aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/pasemi
diff options
context:
space:
mode:
authorIan Campbell <Ian.Campbell@citrix.com>2011-08-30 20:47:01 -0400
committerDavid S. Miller <davem@davemloft.net>2011-09-15 15:35:00 -0400
commit4bb97cae662ea6e2a5aa5982d0b289a8c48d64c6 (patch)
tree92051e408a5072bcee88658d4bf76b1dce87f3a7 /drivers/net/ethernet/pasemi
parentbc516c8f9d35e42dec463dc5c6e1f1202c730fd4 (diff)
pasemi: convert to SKB paged frag API.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Cc: Olof Johansson <olof@lixom.net> Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/pasemi')
-rw-r--r--drivers/net/ethernet/pasemi/pasemi_mac.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/pasemi/pasemi_mac.c b/drivers/net/ethernet/pasemi/pasemi_mac.c
index fad620da7c1..53220958832 100644
--- a/drivers/net/ethernet/pasemi/pasemi_mac.c
+++ b/drivers/net/ethernet/pasemi/pasemi_mac.c
@@ -1505,9 +1505,8 @@ static int pasemi_mac_start_tx(struct sk_buff *skb, struct net_device *dev)
1505 for (i = 0; i < nfrags; i++) { 1505 for (i = 0; i < nfrags; i++) {
1506 skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; 1506 skb_frag_t *frag = &skb_shinfo(skb)->frags[i];
1507 1507
1508 map[i+1] = pci_map_page(mac->dma_pdev, frag->page, 1508 map[i + 1] = skb_frag_dma_map(&mac->dma_pdev->dev, frag, 0,
1509 frag->page_offset, frag->size, 1509 frag->size, PCI_DMA_TODEVICE);
1510 PCI_DMA_TODEVICE);
1511 map_size[i+1] = frag->size; 1510 map_size[i+1] = frag->size;
1512 if (pci_dma_mapping_error(mac->dma_pdev, map[i+1])) { 1511 if (pci_dma_mapping_error(mac->dma_pdev, map[i+1])) {
1513 nfrags = i; 1512 nfrags = i;