diff options
author | Bob Pearson <rpearsonhpe@gmail.com> | 2022-02-08 15:16:41 -0600 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2022-02-16 12:11:29 -0400 |
commit | 3810c1a1cbe8f3157f644b4e42f6c0157dfd22cb (patch) | |
tree | f2e20d21676df1b473f187f545e53a500bb533ba /drivers/infiniband/sw/rxe/rxe_recv.c | |
parent | d2ccf0411d253433409278cd517a091a5b7b613e (diff) | |
download | lwn-3810c1a1cbe8f3157f644b4e42f6c0157dfd22cb.tar.gz lwn-3810c1a1cbe8f3157f644b4e42f6c0157dfd22cb.zip |
RDMA/rxe: Remove mcg from rxe pools
Finish removing mcg from rxe pools. Replace rxe pools ref counting by
kref's. Replace rxe_alloc by kzalloc.
Link: https://lore.kernel.org/r/20220208211644.123457-8-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_recv.c')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_recv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_recv.c b/drivers/infiniband/sw/rxe/rxe_recv.c index fb265902f7e3..53924453abef 100644 --- a/drivers/infiniband/sw/rxe/rxe_recv.c +++ b/drivers/infiniband/sw/rxe/rxe_recv.c @@ -300,7 +300,7 @@ static void rxe_rcv_mcast_pkt(struct rxe_dev *rxe, struct sk_buff *skb) spin_unlock_bh(&rxe->mcg_lock); - rxe_drop_ref(mcg); + kref_put(&mcg->ref_cnt, rxe_cleanup_mcg); if (likely(!skb)) return; |