aboutsummaryrefslogtreecommitdiff
path: root/net/rds/ib.h
diff options
context:
space:
mode:
authorAndy Grover <andy.grover@oracle.com>2010-01-12 10:50:48 -0800
committerAndy Grover <andy.grover@oracle.com>2010-09-08 18:11:42 -0700
commit40589e74f7ba855f3a887c9d4abe9d100c5b039c (patch)
treef32b0414ae3cfe8868fbdb130f9b24ac19794ae3 /net/rds/ib.h
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.h')
-rw-r--r--net/rds/ib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/rds/ib.h b/net/rds/ib.h
index d2fd0aa4fde..a303f13111c 100644
--- a/net/rds/ib.h
+++ b/net/rds/ib.h
@@ -164,6 +164,8 @@ struct rds_ib_device {
unsigned int max_fmrs;
int max_sge;
unsigned int max_wrs;
+ unsigned int max_initiator_depth;
+ unsigned int max_responder_resources;
spinlock_t spinlock; /* protect the above */
};