diff options
author | Faisal Latif <faisal.latif@intel.com> | 2016-06-14 17:54:18 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-06-23 10:35:34 -0400 |
commit | 0477e18145c565f9ca74c6df4112f818f673fcaa (patch) | |
tree | 94569ba32c9488192dea065e0457ac4854aa8269 | |
parent | ee23abd75c5076e51061c275e8f659d754a63c9d (diff) |
i40iw: Return correct max_fast_reg_page_list_len
Return correct value for max_fast_reg_page_list_len from
i40iw_query_device().
Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r-- | drivers/infiniband/hw/i40iw/i40iw.h | 1 | ||||
-rw-r--r-- | drivers/infiniband/hw/i40iw/i40iw_verbs.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw.h b/drivers/infiniband/hw/i40iw/i40iw.h index 8b9532034558..14f16a2dcbed 100644 --- a/drivers/infiniband/hw/i40iw/i40iw.h +++ b/drivers/infiniband/hw/i40iw/i40iw.h | |||
@@ -113,6 +113,7 @@ | |||
113 | 113 | ||
114 | #define IW_HMC_OBJ_TYPE_NUM ARRAY_SIZE(iw_hmc_obj_types) | 114 | #define IW_HMC_OBJ_TYPE_NUM ARRAY_SIZE(iw_hmc_obj_types) |
115 | #define IW_CFG_FPM_QP_COUNT 32768 | 115 | #define IW_CFG_FPM_QP_COUNT 32768 |
116 | #define I40IW_MAX_PAGES_PER_FMR 512 | ||
116 | 117 | ||
117 | #define I40IW_MTU_TO_MSS 40 | 118 | #define I40IW_MTU_TO_MSS 40 |
118 | #define I40IW_DEFAULT_MSS 1460 | 119 | #define I40IW_DEFAULT_MSS 1460 |
diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.c b/drivers/infiniband/hw/i40iw/i40iw_verbs.c index 65bea9c8df13..31eda323fcbf 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_verbs.c +++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.c | |||
@@ -79,6 +79,7 @@ static int i40iw_query_device(struct ib_device *ibdev, | |||
79 | props->max_qp_init_rd_atom = props->max_qp_rd_atom; | 79 | props->max_qp_init_rd_atom = props->max_qp_rd_atom; |
80 | props->atomic_cap = IB_ATOMIC_NONE; | 80 | props->atomic_cap = IB_ATOMIC_NONE; |
81 | props->max_map_per_fmr = 1; | 81 | props->max_map_per_fmr = 1; |
82 | props->max_fast_reg_page_list_len = I40IW_MAX_PAGES_PER_FMR; | ||
82 | return 0; | 83 | return 0; |
83 | } | 84 | } |
84 | 85 | ||