rxe.c (9fd0eb7c3c73c80a7bbe28dc71ae8ec5698a7e84) | rxe.c (d572405518ffd7c21882c1f2e9a568f2e8548d0b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 2/* 3 * Copyright (c) 2016 Mellanox Technologies Ltd. All rights reserved. 4 * Copyright (c) 2015 System Fabric Works, Inc. All rights reserved. 5 */ 6 7#include <rdma/rdma_netlink.h> 8#include <net/addrconf.h> --- 15 unchanged lines hidden (view full) --- 24 rxe_pool_cleanup(&rxe->pd_pool); 25 rxe_pool_cleanup(&rxe->ah_pool); 26 rxe_pool_cleanup(&rxe->srq_pool); 27 rxe_pool_cleanup(&rxe->qp_pool); 28 rxe_pool_cleanup(&rxe->cq_pool); 29 rxe_pool_cleanup(&rxe->mr_pool); 30 rxe_pool_cleanup(&rxe->mw_pool); 31 rxe_pool_cleanup(&rxe->mc_grp_pool); | 1// SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 2/* 3 * Copyright (c) 2016 Mellanox Technologies Ltd. All rights reserved. 4 * Copyright (c) 2015 System Fabric Works, Inc. All rights reserved. 5 */ 6 7#include <rdma/rdma_netlink.h> 8#include <net/addrconf.h> --- 15 unchanged lines hidden (view full) --- 24 rxe_pool_cleanup(&rxe->pd_pool); 25 rxe_pool_cleanup(&rxe->ah_pool); 26 rxe_pool_cleanup(&rxe->srq_pool); 27 rxe_pool_cleanup(&rxe->qp_pool); 28 rxe_pool_cleanup(&rxe->cq_pool); 29 rxe_pool_cleanup(&rxe->mr_pool); 30 rxe_pool_cleanup(&rxe->mw_pool); 31 rxe_pool_cleanup(&rxe->mc_grp_pool); |
32 rxe_pool_cleanup(&rxe->mc_elem_pool); | |
33 34 if (rxe->tfm) 35 crypto_free_shash(rxe->tfm); 36} 37 38/* initialize rxe device parameters */ 39static void rxe_init_device_param(struct rxe_dev *rxe) 40{ --- 117 unchanged lines hidden (view full) --- 158 if (err) 159 goto err8; 160 161 err = rxe_pool_init(rxe, &rxe->mc_grp_pool, RXE_TYPE_MC_GRP, 162 rxe->attr.max_mcast_grp); 163 if (err) 164 goto err9; 165 | 32 33 if (rxe->tfm) 34 crypto_free_shash(rxe->tfm); 35} 36 37/* initialize rxe device parameters */ 38static void rxe_init_device_param(struct rxe_dev *rxe) 39{ --- 117 unchanged lines hidden (view full) --- 157 if (err) 158 goto err8; 159 160 err = rxe_pool_init(rxe, &rxe->mc_grp_pool, RXE_TYPE_MC_GRP, 161 rxe->attr.max_mcast_grp); 162 if (err) 163 goto err9; 164 |
166 err = rxe_pool_init(rxe, &rxe->mc_elem_pool, RXE_TYPE_MC_ELEM, 167 rxe->attr.max_total_mcast_qp_attach); 168 if (err) 169 goto err10; 170 | |
171 return 0; 172 | 165 return 0; 166 |
173err10: 174 rxe_pool_cleanup(&rxe->mc_grp_pool); | |
175err9: 176 rxe_pool_cleanup(&rxe->mw_pool); 177err8: 178 rxe_pool_cleanup(&rxe->mr_pool); 179err7: 180 rxe_pool_cleanup(&rxe->cq_pool); 181err6: 182 rxe_pool_cleanup(&rxe->qp_pool); --- 127 unchanged lines hidden --- | 167err9: 168 rxe_pool_cleanup(&rxe->mw_pool); 169err8: 170 rxe_pool_cleanup(&rxe->mr_pool); 171err7: 172 rxe_pool_cleanup(&rxe->cq_pool); 173err6: 174 rxe_pool_cleanup(&rxe->qp_pool); --- 127 unchanged lines hidden --- |