Commit 0477e181 authored by Faisal Latif's avatar Faisal Latif Committed by Doug Ledford

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: default avatarFaisal Latif <faisal.latif@intel.com>
Signed-off-by: default avatarShiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent ee23abd7
...@@ -113,6 +113,7 @@ ...@@ -113,6 +113,7 @@
#define IW_HMC_OBJ_TYPE_NUM ARRAY_SIZE(iw_hmc_obj_types) #define IW_HMC_OBJ_TYPE_NUM ARRAY_SIZE(iw_hmc_obj_types)
#define IW_CFG_FPM_QP_COUNT 32768 #define IW_CFG_FPM_QP_COUNT 32768
#define I40IW_MAX_PAGES_PER_FMR 512
#define I40IW_MTU_TO_MSS 40 #define I40IW_MTU_TO_MSS 40
#define I40IW_DEFAULT_MSS 1460 #define I40IW_DEFAULT_MSS 1460
......
...@@ -79,6 +79,7 @@ static int i40iw_query_device(struct ib_device *ibdev, ...@@ -79,6 +79,7 @@ static int i40iw_query_device(struct ib_device *ibdev,
props->max_qp_init_rd_atom = props->max_qp_rd_atom; props->max_qp_init_rd_atom = props->max_qp_rd_atom;
props->atomic_cap = IB_ATOMIC_NONE; props->atomic_cap = IB_ATOMIC_NONE;
props->max_map_per_fmr = 1; props->max_map_per_fmr = 1;
props->max_fast_reg_page_list_len = I40IW_MAX_PAGES_PER_FMR;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment