ib_rdma.c (eee2fa6ab3225192d6d894c54a6fb02ac9efdff6) | ib_rdma.c (b7ff8b1036f0b0df1390ba6b5e9bc7ec458e857a) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2006, 2017 Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2006, 2018 Oracle and/or its affiliates. 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: 9 * 10 * Redistribution and use in source and binary forms, with or --- 164 unchanged lines hidden (view full) --- 175void rds_ib_get_mr_info(struct rds_ib_device *rds_ibdev, struct rds_info_rdma_connection *iinfo) 176{ 177 struct rds_ib_mr_pool *pool_1m = rds_ibdev->mr_1m_pool; 178 179 iinfo->rdma_mr_max = pool_1m->max_items; 180 iinfo->rdma_mr_size = pool_1m->fmr_attr.max_pages; 181} 182 | 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: 9 * 10 * Redistribution and use in source and binary forms, with or --- 164 unchanged lines hidden (view full) --- 175void rds_ib_get_mr_info(struct rds_ib_device *rds_ibdev, struct rds_info_rdma_connection *iinfo) 176{ 177 struct rds_ib_mr_pool *pool_1m = rds_ibdev->mr_1m_pool; 178 179 iinfo->rdma_mr_max = pool_1m->max_items; 180 iinfo->rdma_mr_size = pool_1m->fmr_attr.max_pages; 181} 182 |
183void rds6_ib_get_mr_info(struct rds_ib_device *rds_ibdev, 184 struct rds6_info_rdma_connection *iinfo6) 185{ 186 struct rds_ib_mr_pool *pool_1m = rds_ibdev->mr_1m_pool; 187 188 iinfo6->rdma_mr_max = pool_1m->max_items; 189 iinfo6->rdma_mr_size = pool_1m->fmr_attr.max_pages; 190} 191 |
|
183struct rds_ib_mr *rds_ib_reuse_mr(struct rds_ib_mr_pool *pool) 184{ 185 struct rds_ib_mr *ibmr = NULL; 186 struct llist_node *ret; 187 unsigned long *flag; 188 189 preempt_disable(); 190 flag = this_cpu_ptr(&clean_list_grace); --- 446 unchanged lines hidden --- | 192struct rds_ib_mr *rds_ib_reuse_mr(struct rds_ib_mr_pool *pool) 193{ 194 struct rds_ib_mr *ibmr = NULL; 195 struct llist_node *ret; 196 unsigned long *flag; 197 198 preempt_disable(); 199 flag = this_cpu_ptr(&clean_list_grace); --- 446 unchanged lines hidden --- |