diff options
author | Bob Pearson <rpearsonhpe@gmail.com> | 2022-02-09 00:16:39 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2022-02-16 19:06:35 +0300 |
commit | 8a0a5fe0c462438a8c423ebaa0fbb7af5055a155 (patch) | |
tree | a29377f4407f6c5cba9e537dc94c6a33149b0590 /drivers/infiniband/sw/rxe/rxe.c | |
parent | 8a99c81f1231786c364963a9f335eab2cca816a4 (diff) | |
download | linux-8a0a5fe0c462438a8c423ebaa0fbb7af5055a155.tar.xz |
RDMA/rxe: Replace pool key by rxe->mcg_tree
Continuing to decouple mcg from rxe pools. Create red-black tree code in
rxe_mcast.c to hold mcg index. Replace pool key calls by calls to local
red-black routines.
Link: https://lore.kernel.org/r/20220208211644.123457-6-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe.c')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe.c b/drivers/infiniband/sw/rxe/rxe.c index 7386a51b953d..dc36148272dd 100644 --- a/drivers/infiniband/sw/rxe/rxe.c +++ b/drivers/infiniband/sw/rxe/rxe.c @@ -203,7 +203,9 @@ static int rxe_init(struct rxe_dev *rxe) spin_lock_init(&rxe->pending_lock); INIT_LIST_HEAD(&rxe->pending_mmaps); + /* init multicast support */ spin_lock_init(&rxe->mcg_lock); + rxe->mcg_tree = RB_ROOT; mutex_init(&rxe->usdev_lock); |