diff options
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib_cm.c')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_cm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c b/drivers/infiniband/ulp/ipoib/ipoib_cm.c index 1818f958c250..7dd2ec473d24 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c | |||
@@ -634,8 +634,8 @@ static inline int post_send(struct ipoib_dev_priv *priv, | |||
634 | { | 634 | { |
635 | struct ib_send_wr *bad_wr; | 635 | struct ib_send_wr *bad_wr; |
636 | 636 | ||
637 | priv->tx_sge.addr = addr; | 637 | priv->tx_sge[0].addr = addr; |
638 | priv->tx_sge.length = len; | 638 | priv->tx_sge[0].length = len; |
639 | 639 | ||
640 | priv->tx_wr.wr_id = wr_id | IPOIB_OP_CM; | 640 | priv->tx_wr.wr_id = wr_id | IPOIB_OP_CM; |
641 | 641 | ||
@@ -676,7 +676,7 @@ void ipoib_cm_send(struct net_device *dev, struct sk_buff *skb, struct ipoib_cm_ | |||
676 | return; | 676 | return; |
677 | } | 677 | } |
678 | 678 | ||
679 | tx_req->mapping = addr; | 679 | tx_req->mapping[0] = addr; |
680 | 680 | ||
681 | if (unlikely(post_send(priv, tx, tx->tx_head & (ipoib_sendq_size - 1), | 681 | if (unlikely(post_send(priv, tx, tx->tx_head & (ipoib_sendq_size - 1), |
682 | addr, skb->len))) { | 682 | addr, skb->len))) { |
@@ -715,7 +715,7 @@ void ipoib_cm_handle_tx_wc(struct net_device *dev, struct ib_wc *wc) | |||
715 | 715 | ||
716 | tx_req = &tx->tx_ring[wr_id]; | 716 | tx_req = &tx->tx_ring[wr_id]; |
717 | 717 | ||
718 | ib_dma_unmap_single(priv->ca, tx_req->mapping, tx_req->skb->len, DMA_TO_DEVICE); | 718 | ib_dma_unmap_single(priv->ca, tx_req->mapping[0], tx_req->skb->len, DMA_TO_DEVICE); |
719 | 719 | ||
720 | /* FIXME: is this right? Shouldn't we only increment on success? */ | 720 | /* FIXME: is this right? Shouldn't we only increment on success? */ |
721 | ++dev->stats.tx_packets; | 721 | ++dev->stats.tx_packets; |
@@ -1110,7 +1110,7 @@ timeout: | |||
1110 | 1110 | ||
1111 | while ((int) p->tx_tail - (int) p->tx_head < 0) { | 1111 | while ((int) p->tx_tail - (int) p->tx_head < 0) { |
1112 | tx_req = &p->tx_ring[p->tx_tail & (ipoib_sendq_size - 1)]; | 1112 | tx_req = &p->tx_ring[p->tx_tail & (ipoib_sendq_size - 1)]; |
1113 | ib_dma_unmap_single(priv->ca, tx_req->mapping, tx_req->skb->len, | 1113 | ib_dma_unmap_single(priv->ca, tx_req->mapping[0], tx_req->skb->len, |
1114 | DMA_TO_DEVICE); | 1114 | DMA_TO_DEVICE); |
1115 | dev_kfree_skb_any(tx_req->skb); | 1115 | dev_kfree_skb_any(tx_req->skb); |
1116 | ++p->tx_tail; | 1116 | ++p->tx_tail; |