summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb3/iwch.h
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2019-02-20 16:20:48 -0800
committerJason Gunthorpe <jgg@mellanox.com>2019-03-25 15:35:08 -0300
commit27114876ceaa66064472f1f0957068b8cdc51a29 (patch)
tree6bd3f625b896d0e2fcea8222d4a6020fe9a1dac4 /drivers/infiniband/hw/cxgb3/iwch.h
parenta2f409713e44ff59f704e00b3ec91fed1c19168b (diff)
cxgb3: Convert qpidr to XArray
Signed-off-by: Matthew Wilcox <willy@infradead.org> Acked-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb3/iwch.h')
-rw-r--r--drivers/infiniband/hw/cxgb3/iwch.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch.h b/drivers/infiniband/hw/cxgb3/iwch.h
index d45de53392e7..70e086946d30 100644
--- a/drivers/infiniband/hw/cxgb3/iwch.h
+++ b/drivers/infiniband/hw/cxgb3/iwch.h
@@ -107,7 +107,7 @@ struct iwch_dev {
u32 device_cap_flags;
struct iwch_rnic_attributes attr;
struct xarray cqs;
- struct idr qpidr;
+ struct xarray qps;
struct idr mmidr;
spinlock_t lock;
struct list_head entry;
@@ -141,7 +141,7 @@ static inline struct iwch_cq *get_chp(struct iwch_dev *rhp, u32 cqid)
static inline struct iwch_qp *get_qhp(struct iwch_dev *rhp, u32 qpid)
{
- return idr_find(&rhp->qpidr, qpid);
+ return xa_load(&rhp->qps, qpid);
}
static inline struct iwch_mr *get_mhp(struct iwch_dev *rhp, u32 mmid)