diff options
author | Matthew Wilcox <willy@infradead.org> | 2019-02-20 16:20:51 -0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-03-25 15:39:18 -0300 |
commit | 2f43129127e62b25f56ff82a37c40b42c0e6f883 (patch) | |
tree | 21d8c83dea62bd8bf9a90aa5d246510e4d23c21b /drivers/infiniband/hw/cxgb4/iw_cxgb4.h | |
parent | 52e124c27e7bfb78980189bdfec049594d7612be (diff) | |
download | linux-stable-2f43129127e62b25f56ff82a37c40b42c0e6f883.tar.gz linux-stable-2f43129127e62b25f56ff82a37c40b42c0e6f883.tar.bz2 linux-stable-2f43129127e62b25f56ff82a37c40b42c0e6f883.zip |
cxgb4: 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/cxgb4/iw_cxgb4.h')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/iw_cxgb4.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h index 4ca5800023c1..e24bd1f8955e 100644 --- a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h +++ b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h @@ -316,7 +316,7 @@ struct c4iw_dev { struct c4iw_rdev rdev; u32 device_cap_flags; struct xarray cqs; - struct idr qpidr; + struct xarray qps; struct idr mmidr; spinlock_t lock; struct mutex db_mutex; @@ -354,7 +354,7 @@ static inline struct c4iw_cq *get_chp(struct c4iw_dev *rhp, u32 cqid) static inline struct c4iw_qp *get_qhp(struct c4iw_dev *rhp, u32 qpid) { - return idr_find(&rhp->qpidr, qpid); + return xa_load(&rhp->qps, qpid); } static inline struct c4iw_mr *get_mhp(struct c4iw_dev *rhp, u32 mmid) |