Skip to content

Commit

Permalink
ibmveth: convert to SKB paged frag API.
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Santiago Leon <santil@linux.vnet.ibm.com>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ian Campbell authored and David S. Miller committed Sep 15, 2011
1 parent 3857e3e commit 8838a53
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/net/ethernet/ibm/ibmveth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1002,9 +1002,8 @@ static netdev_tx_t ibmveth_start_xmit(struct sk_buff *skb,
unsigned long dma_addr;
skb_frag_t *frag = &skb_shinfo(skb)->frags[i];

dma_addr = dma_map_page(&adapter->vdev->dev, frag->page,
frag->page_offset, frag->size,
DMA_TO_DEVICE);
dma_addr = skb_frag_dma_map(&adapter->vdev->dev, frag, 0,
frag->size, DMA_TO_DEVICE);

if (dma_mapping_error(&adapter->vdev->dev, dma_addr))
goto map_failed_frags;
Expand Down

0 comments on commit 8838a53

Please sign in to comment.