aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/amso1100/c2.c
diff options
context:
space:
mode:
authorIan Campbell <Ian.Campbell@citrix.com>2011-08-24 18:28:08 -0400
committerDavid S. Miller <davem@davemloft.net>2011-08-26 12:38:42 -0400
commit70b1052ad284d97d0a4d7f56ad63d1757f1da08f (patch)
tree1d2d4f524c1e73d4705fa35cb2cf35e4109be063 /drivers/infiniband/hw/amso1100/c2.c
parentc517202f3cf1cd189259c50d55622d8c7ab16eb2 (diff)
IB: amso1100: convert to SKB paged frag API.
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>
Diffstat (limited to 'drivers/infiniband/hw/amso1100/c2.c')
-rw-r--r--drivers/infiniband/hw/amso1100/c2.c8
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;