Message ID | 20200706075419.361484-5-kamalheib1@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | RDMA/providers: Set max_pkey attribute | expand |
diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.c b/drivers/infiniband/hw/i40iw/i40iw_verbs.c index 19af29a48c55..ef624fa5f07b 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_verbs.c +++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.c @@ -84,6 +84,7 @@ static int i40iw_query_device(struct ib_device *ibdev, props->max_qp_init_rd_atom = props->max_qp_rd_atom; props->atomic_cap = IB_ATOMIC_NONE; props->max_fast_reg_page_list_len = I40IW_MAX_PAGES_PER_FMR; + props->max_pkeys = 1; return 0; }
Make sure to set the max_pkeys attribute to indicate the maximum number of partitions supported by the i40iw device. Fixes: d37498417947 ("i40iw: add files for iwarp interface") Signed-off-by: Kamal Heib <kamalheib1@gmail.com> Cc: Shiraz Saleem <shiraz.saleem@intel.com> --- drivers/infiniband/hw/i40iw/i40iw_verbs.c | 1 + 1 file changed, 1 insertion(+)