diff options
author | Haggai Eran <haggaie@mellanox.com> | 2014-05-22 07:50:10 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-05-27 14:53:06 -0400 |
commit | b475598aec63f2efbc78f0ff1895d917d2370846 (patch) | |
tree | a4c0b13aa5cbe15a1ac5fb50bddc2c9208a0c193 /drivers/infiniband/hw | |
parent | 8605933a22796243982e7ed838deca5549c64c62 (diff) |
mlx5_core: Store MR attributes in mlx5_mr_core during creation and after UMR
The patch stores iova, pd and size during mr creation and after UMRs
that modify them. It removes the unused access flags field.
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/mlx5/mr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5/mr.c index 9d932a2aa9f4..f472ab246d94 100644 --- a/drivers/infiniband/hw/mlx5/mr.c +++ b/drivers/infiniband/hw/mlx5/mr.c | |||
@@ -794,6 +794,10 @@ static struct mlx5_ib_mr *reg_umr(struct ib_pd *pd, struct ib_umem *umem, | |||
794 | err = -EFAULT; | 794 | err = -EFAULT; |
795 | } | 795 | } |
796 | 796 | ||
797 | mr->mmr.iova = virt_addr; | ||
798 | mr->mmr.size = len; | ||
799 | mr->mmr.pd = to_mpd(pd)->pdn; | ||
800 | |||
797 | unmap_dma: | 801 | unmap_dma: |
798 | up(&umrc->sem); | 802 | up(&umrc->sem); |
799 | dma_unmap_single(ddev, mr->dma, size, DMA_TO_DEVICE); | 803 | dma_unmap_single(ddev, mr->dma, size, DMA_TO_DEVICE); |