diff options
author | 2015-07-30 17:22:17 -0600 | |
---|---|---|
committer | 2015-08-30 18:12:34 -0400 | |
commit | 77b1f99660ed60694e1d0e3a63096c1f252debfd (patch) | |
tree | 575415c9aefa18cfe2ec5a5c98a60939ee209d1b /drivers/infiniband/ulp/ipoib/ipoib_cm.c | |
parent | IB/mad: Remove ib_get_dma_mr calls (diff) | |
download | linux-77b1f99660ed60694e1d0e3a63096c1f252debfd.tar.gz linux-77b1f99660ed60694e1d0e3a63096c1f252debfd.tar.bz2 linux-77b1f99660ed60694e1d0e3a63096c1f252debfd.zip |
IB/ipoib: Remove ib_get_dma_mr calls
The pd now has a local_dma_lkey member which completely replaces
ib_get_dma_mr, use it instead.
Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib_cm.c')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_cm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c b/drivers/infiniband/ulp/ipoib/ipoib_cm.c index 9d321575d90e..c78dc1638030 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c @@ -332,7 +332,7 @@ static void ipoib_cm_init_rx_wr(struct net_device *dev, int i; for (i = 0; i < priv->cm.num_frags; ++i) - sge[i].lkey = priv->mr->lkey; + sge[i].lkey = priv->pd->local_dma_lkey; sge[0].length = IPOIB_CM_HEAD_SIZE; for (i = 1; i < priv->cm.num_frags; ++i) |