summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5/mlx5_ib.h
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2015-09-24 10:34:24 +0300
committerDoug Ledford <dledford@redhat.com>2015-09-25 10:46:51 -0400
commit81fb5e26a9d05674c048803a20cb8f08a1b1c9b8 (patch)
tree5af05ed065928dcef3383d76154dca8514419d72 /drivers/infiniband/hw/mlx5/mlx5_ib.h
parentc6790aa9f4fdc26b1246ba36da2fd749663beb65 (diff)
downloadop-kernel-dev-81fb5e26a9d05674c048803a20cb8f08a1b1c9b8.zip
op-kernel-dev-81fb5e26a9d05674c048803a20cb8f08a1b1c9b8.tar.gz
IB/mlx5: Remove pa_lkey usages
Since mlx5 driver cannot rely on registration using the reserved lkey (global_dma_lkey) it used to allocate a private physical address lkey for each allocated pd. Commit 96249d70dd70 ("IB/core: Guarantee that a local_dma_lkey is available") just does it in the core layer so we can go ahead and use that. Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/mlx5_ib.h')
-rw-r--r--drivers/infiniband/hw/mlx5/mlx5_ib.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mlx5/mlx5_ib.h b/drivers/infiniband/hw/mlx5/mlx5_ib.h
index bb8cda7..22123b7 100644
--- a/drivers/infiniband/hw/mlx5/mlx5_ib.h
+++ b/drivers/infiniband/hw/mlx5/mlx5_ib.h
@@ -103,7 +103,6 @@ static inline struct mlx5_ib_ucontext *to_mucontext(struct ib_ucontext *ibuconte
struct mlx5_ib_pd {
struct ib_pd ibpd;
u32 pdn;
- u32 pa_lkey;
};
/* Use macros here so that don't have to duplicate
@@ -213,7 +212,6 @@ struct mlx5_ib_qp {
int uuarn;
int create_type;
- u32 pa_lkey;
/* Store signature errors */
bool signature_en;
OpenPOWER on IntegriCloud