IB: amso1100: convert to SKB paged frag API.
authorIan Campbell <Ian.Campbell@citrix.com>
Wed, 24 Aug 2011 22:28:08 +0000 (22:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Aug 2011 16:38:42 +0000 (12:38 -0400)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Tom Tucker <tom@opengridcomputing.com>
Cc: Steve Wise <swise@opengridcomputing.com>
Cc: Roland Dreier <roland@kernel.org>
Cc: Sean Hefty <sean.hefty@intel.com>
Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
Cc: linux-rdma@vger.kernel.org
Cc: netdev@vger.kernel.org
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/amso1100/c2.c

index 444470a28de2636a9b6a955522cbf7e5c3a25045..6a8f36e9d9ed61d600a491d4a75401c83a2b5141 100644 (file)
@@ -802,11 +802,9 @@ static int c2_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
                for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) {
                        skb_frag_t *frag = &skb_shinfo(skb)->frags[i];
                        maplen = frag->size;
-                       mapaddr =
-                           pci_map_page(c2dev->pcidev, frag->page,
-                                        frag->page_offset, maplen,
-                                        PCI_DMA_TODEVICE);
-
+                       mapaddr = skb_frag_dma_map(&c2dev->pcidev->dev, frag,
+                                                  0, maplen,
+                                                  PCI_DMA_TODEVICE);
                        elem = elem->next;
                        elem->skb = NULL;
                        elem->mapaddr = mapaddr;