diff options
Diffstat (limited to 'drivers/infiniband/hw/amso1100/c2.c')
-rw-r--r-- | drivers/infiniband/hw/amso1100/c2.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/infiniband/hw/amso1100/c2.c b/drivers/infiniband/hw/amso1100/c2.c index 444470a28de2..6a8f36e9d9ed 100644 --- a/drivers/infiniband/hw/amso1100/c2.c +++ b/drivers/infiniband/hw/amso1100/c2.c | |||
@@ -802,11 +802,9 @@ static int c2_xmit_frame(struct sk_buff *skb, struct net_device *netdev) | |||
802 | for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { | 802 | for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { |
803 | skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; | 803 | skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; |
804 | maplen = frag->size; | 804 | maplen = frag->size; |
805 | mapaddr = | 805 | mapaddr = skb_frag_dma_map(&c2dev->pcidev->dev, frag, |
806 | pci_map_page(c2dev->pcidev, frag->page, | 806 | 0, maplen, |
807 | frag->page_offset, maplen, | 807 | PCI_DMA_TODEVICE); |
808 | PCI_DMA_TODEVICE); | ||
809 | |||
810 | elem = elem->next; | 808 | elem = elem->next; |
811 | elem->skb = NULL; | 809 | elem->skb = NULL; |
812 | elem->mapaddr = mapaddr; | 810 | elem->mapaddr = mapaddr; |