Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158995
b: refs/heads/master
c: 3ba23ad
h: refs/heads/master
i:
  158993: 5b361ef
  158991: 38ba9af
v: v3
  • Loading branch information
Andy Grover authored and David S. Miller committed Jul 20, 2009
1 parent 708c429 commit a3a19db
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4edf547b4d0f886acf5aa5a0c8f8edbaff280830
refs/heads/master: 3ba23ade464cca7c4a7ba5628c613339d3f2e161
3 changes: 3 additions & 0 deletions trunk/net/rds/ib.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,14 @@

unsigned int fmr_pool_size = RDS_FMR_POOL_SIZE;
unsigned int fmr_message_size = RDS_FMR_SIZE + 1; /* +1 allows for unaligned MRs */
unsigned int rds_ib_retry_count = RDS_IB_DEFAULT_RETRY_COUNT;

module_param(fmr_pool_size, int, 0444);
MODULE_PARM_DESC(fmr_pool_size, " Max number of fmr per HCA");
module_param(fmr_message_size, int, 0444);
MODULE_PARM_DESC(fmr_message_size, " Max size of a RDMA transfer");
module_param(rds_ib_retry_count, int, 0444);
MODULE_PARM_DESC(rds_ib_retry_count, " Number of hw retries before reporting an error");

struct list_head rds_ib_devices;

Expand Down
3 changes: 3 additions & 0 deletions trunk/net/rds/ib.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#define RDS_IB_DEFAULT_RECV_WR 1024
#define RDS_IB_DEFAULT_SEND_WR 256

#define RDS_IB_DEFAULT_RETRY_COUNT 2

#define RDS_IB_SUPPORTED_PROTOCOLS 0x00000003 /* minor versions supported */

extern struct list_head rds_ib_devices;
Expand Down Expand Up @@ -247,6 +249,7 @@ extern struct ib_client rds_ib_client;

extern unsigned int fmr_pool_size;
extern unsigned int fmr_message_size;
extern unsigned int rds_ib_retry_count;

extern spinlock_t ib_nodev_conns_lock;
extern struct list_head ib_nodev_conns;
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/rds/ib_cm.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ static void rds_ib_cm_fill_conn_param(struct rds_connection *conn,
/* XXX tune these? */
conn_param->responder_resources = 1;
conn_param->initiator_depth = 1;
conn_param->retry_count = 7;
conn_param->retry_count = min_t(unsigned int, rds_ib_retry_count, 7);
conn_param->rnr_retry_count = 7;

if (dp) {
Expand Down

0 comments on commit a3a19db

Please sign in to comment.