aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds/ib_rdma.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/rds/ib_rdma.c')
-rw-r--r--net/rds/ib_rdma.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c
index 0ec9df043dd0..e3c8bbbdb43f 100644
--- a/net/rds/ib_rdma.c
+++ b/net/rds/ib_rdma.c
@@ -1,5 +1,5 @@
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 * 3 *
4 * This software is available to you under a choice of one of two 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 5 * licenses. You may choose to be licensed under the terms of the GNU
@@ -180,6 +180,15 @@ void rds_ib_get_mr_info(struct rds_ib_device *rds_ibdev, struct rds_info_rdma_co
180 iinfo->rdma_mr_size = pool_1m->fmr_attr.max_pages; 180 iinfo->rdma_mr_size = pool_1m->fmr_attr.max_pages;
181} 181}
182 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) 192struct rds_ib_mr *rds_ib_reuse_mr(struct rds_ib_mr_pool *pool)
184{ 193{
185 struct rds_ib_mr *ibmr = NULL; 194 struct rds_ib_mr *ibmr = NULL;