ib.c (7731b8bc94e599c9a79e428f3359ff2c34b7576a) | ib.c (33023fb85a42b53bf778bc025f9667b582282be4) |
---|---|
1/* 2 * Copyright (c) 2006 Oracle. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the 8 * OpenIB.org BSD license below: --- 129 unchanged lines hidden (view full) --- 138 if (!rds_ibdev) 139 return; 140 141 spin_lock_init(&rds_ibdev->spinlock); 142 refcount_set(&rds_ibdev->refcount, 1); 143 INIT_WORK(&rds_ibdev->free_work, rds_ib_dev_free); 144 145 rds_ibdev->max_wrs = device->attrs.max_qp_wr; | 1/* 2 * Copyright (c) 2006 Oracle. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the 8 * OpenIB.org BSD license below: --- 129 unchanged lines hidden (view full) --- 138 if (!rds_ibdev) 139 return; 140 141 spin_lock_init(&rds_ibdev->spinlock); 142 refcount_set(&rds_ibdev->refcount, 1); 143 INIT_WORK(&rds_ibdev->free_work, rds_ib_dev_free); 144 145 rds_ibdev->max_wrs = device->attrs.max_qp_wr; |
146 rds_ibdev->max_sge = min(device->attrs.max_sge, RDS_IB_MAX_SGE); | 146 rds_ibdev->max_sge = min(device->attrs.max_send_sge, RDS_IB_MAX_SGE); |
147 148 has_fr = (device->attrs.device_cap_flags & 149 IB_DEVICE_MEM_MGT_EXTENSIONS); 150 has_fmr = (device->alloc_fmr && device->dealloc_fmr && 151 device->map_phys_fmr && device->unmap_fmr); 152 rds_ibdev->use_fastreg = (has_fr && !has_fmr); 153 154 rds_ibdev->fmr_max_remaps = device->attrs.max_map_per_fmr?: 32; --- 325 unchanged lines hidden --- | 147 148 has_fr = (device->attrs.device_cap_flags & 149 IB_DEVICE_MEM_MGT_EXTENSIONS); 150 has_fmr = (device->alloc_fmr && device->dealloc_fmr && 151 device->map_phys_fmr && device->unmap_fmr); 152 rds_ibdev->use_fastreg = (has_fr && !has_fmr); 153 154 rds_ibdev->fmr_max_remaps = device->attrs.max_map_per_fmr?: 32; --- 325 unchanged lines hidden --- |