aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds/ib.c
diff options
context:
space:
mode:
authorAndy Grover <andy.grover@oracle.com>2010-01-12 13:50:48 -0500
committerAndy Grover <andy.grover@oracle.com>2010-09-08 21:11:42 -0400
commit40589e74f7ba855f3a887c9d4abe9d100c5b039c (patch)
treef32b0414ae3cfe8868fbdb130f9b24ac19794ae3 /net/rds/ib.c
parent15133f6e67d8d646d0744336b4daa3135452cb0d (diff)
RDS: Base init_depth and responder_resources on hw values
Instead of using a constant for initiator_depth and responder_resources, read the per-QP values when the device is enumerated, and then use these values when creating the connection. Signed-off-by: Andy Grover <andy.grover@oracle.com>
Diffstat (limited to 'net/rds/ib.c')
-rw-r--r--net/rds/ib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/rds/ib.c b/net/rds/ib.c
index f0d29656baff..72a5116c11de 100644
--- a/net/rds/ib.c
+++ b/net/rds/ib.c
@@ -91,6 +91,9 @@ void rds_ib_add_one(struct ib_device *device)
91 min_t(unsigned int, dev_attr->max_fmr, fmr_pool_size) : 91 min_t(unsigned int, dev_attr->max_fmr, fmr_pool_size) :
92 fmr_pool_size; 92 fmr_pool_size;
93 93
94 rds_ibdev->max_initiator_depth = dev_attr->max_qp_init_rd_atom;
95 rds_ibdev->max_responder_resources = dev_attr->max_qp_rd_atom;
96
94 rds_ibdev->dev = device; 97 rds_ibdev->dev = device;
95 rds_ibdev->pd = ib_alloc_pd(device); 98 rds_ibdev->pd = ib_alloc_pd(device);
96 if (IS_ERR(rds_ibdev->pd)) 99 if (IS_ERR(rds_ibdev->pd))