summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/iser/iser_initiator.c
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2015-08-06 18:33:03 +0300
committerDoug Ledford <dledford@redhat.com>2015-08-30 18:12:32 -0400
commitf8db651da29bcad213d43328ebf8ce8459f526a7 (patch)
treef7979a73c6dbae364d554371611d25305964ddb8 /drivers/infiniband/ulp/iser/iser_initiator.c
parent32467c420bb68776ebaa53ddf6712e1dba7bb5da (diff)
downloadlinux-f8db651da29bcad213d43328ebf8ce8459f526a7.tar.bz2
IB/iser: Pass registration pool a size parameter
Hard coded for now. This will allow to allocate different sized MRs depending on the IO size needed (and device capabilities). This patch does not change any functionality. Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp/iser/iser_initiator.c')
-rw-r--r--drivers/infiniband/ulp/iser/iser_initiator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_initiator.c b/drivers/infiniband/ulp/iser/iser_initiator.c
index ae19c69e761c..f1200f27b6a7 100644
--- a/drivers/infiniband/ulp/iser/iser_initiator.c
+++ b/drivers/infiniband/ulp/iser/iser_initiator.c
@@ -258,7 +258,8 @@ int iser_alloc_rx_descriptors(struct iser_conn *iser_conn,
iser_conn->qp_max_recv_dtos_mask = session->cmds_max - 1; /* cmds_max is 2^N */
iser_conn->min_posted_rx = iser_conn->qp_max_recv_dtos >> 2;
- if (device->reg_ops->alloc_reg_res(ib_conn, session->scsi_cmds_max))
+ if (device->reg_ops->alloc_reg_res(ib_conn, session->scsi_cmds_max,
+ ISCSI_ISER_SG_TABLESIZE + 1))
goto create_rdma_reg_res_failed;
if (iser_alloc_login_buf(iser_conn))