diff options
-rw-r--r-- | drivers/infiniband/hw/bnxt_re/bnxt_re.h | 7 | ||||
-rw-r--r-- | drivers/infiniband/hw/bnxt_re/ib_verbs.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/bnxt_re/bnxt_re.h b/drivers/infiniband/hw/bnxt_re/bnxt_re.h index 4cb257dc61be..85527532c49d 100644 --- a/drivers/infiniband/hw/bnxt_re/bnxt_re.h +++ b/drivers/infiniband/hw/bnxt_re/bnxt_re.h | |||
@@ -62,6 +62,13 @@ | |||
62 | 62 | ||
63 | #define BNXT_RE_RQ_WQE_THRESHOLD 32 | 63 | #define BNXT_RE_RQ_WQE_THRESHOLD 32 |
64 | 64 | ||
65 | /* | ||
66 | * Setting the default ack delay value to 16, which means | ||
67 | * the default timeout is approx. 260ms(4 usec * 2 ^(timeout)) | ||
68 | */ | ||
69 | |||
70 | #define BNXT_RE_DEFAULT_ACK_DELAY 16 | ||
71 | |||
65 | struct bnxt_re_work { | 72 | struct bnxt_re_work { |
66 | struct work_struct work; | 73 | struct work_struct work; |
67 | unsigned long event; | 74 | unsigned long event; |
diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.c b/drivers/infiniband/hw/bnxt_re/ib_verbs.c index d5aa5a1a7e00..f0e01b3ac711 100644 --- a/drivers/infiniband/hw/bnxt_re/ib_verbs.c +++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.c | |||
@@ -201,7 +201,7 @@ int bnxt_re_query_device(struct ib_device *ibdev, | |||
201 | ib_attr->max_fast_reg_page_list_len = MAX_PBL_LVL_1_PGS; | 201 | ib_attr->max_fast_reg_page_list_len = MAX_PBL_LVL_1_PGS; |
202 | 202 | ||
203 | ib_attr->max_pkeys = 1; | 203 | ib_attr->max_pkeys = 1; |
204 | ib_attr->local_ca_ack_delay = 0; | 204 | ib_attr->local_ca_ack_delay = BNXT_RE_DEFAULT_ACK_DELAY; |
205 | return 0; | 205 | return 0; |
206 | } | 206 | } |
207 | 207 | ||