diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2020-04-04 09:40:24 +0200 |
---|---|---|
committer | Leon Romanovsky <leonro@mellanox.com> | 2020-04-19 14:53:21 +0200 |
commit | 333fbaa0255b8d471fc7ae767ef3a1766c732d6d (patch) | |
tree | 2aa2fd020a8f765b2c8a8475beff1beb5f95579f /drivers/infiniband/hw/mlx5/cq.c | |
parent | RDMA/mlx5: Alphabetically sort build artifacts (diff) | |
download | linux-333fbaa0255b8d471fc7ae767ef3a1766c732d6d.tar.xz linux-333fbaa0255b8d471fc7ae767ef3a1766c732d6d.zip |
net/mlx5: Move QP logic to mlx5_ib
The mlx5_core doesn't need any functionality coded in qp.c, so move
that file to drivers/infiniband/ be under mlx5_ib responsibility.
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/cq.c')
-rw-r--r-- | drivers/infiniband/hw/mlx5/cq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/cq.c b/drivers/infiniband/hw/mlx5/cq.c index 146ba2966744..32c05730dfe9 100644 --- a/drivers/infiniband/hw/mlx5/cq.c +++ b/drivers/infiniband/hw/mlx5/cq.c @@ -36,6 +36,7 @@ #include <rdma/ib_cache.h> #include "mlx5_ib.h" #include "srq.h" +#include "qp.h" static void mlx5_ib_cq_comp(struct mlx5_core_cq *cq, struct mlx5_eqe *eqe) { @@ -484,7 +485,7 @@ repoll: * because CQs will be locked while QPs are removed * from the table. */ - mqp = __mlx5_qp_lookup(dev->mdev, qpn); + mqp = radix_tree_lookup(&dev->qp_table.tree, qpn); *cur_qp = to_mibqp(mqp); } |