RDMA/efa: Set maximum pkeys device attribute
Subsystems (2)
PATCH 1/1 RDMA/efa: Set maximum pkeys device attribute
The max_pkeys device attribute was not set in query device verb, set it to one in order to account for the default pkey (0xffff).
Fixes 40909f664d27 ("RDMA/efa: Add EFA verbs implementation")
Reviewed-by Firas JahJah <[email protected]>
Reviewed-by Yossi Leybovich <[email protected]>
Signed-off-by Gal Pressman <[email protected]>
--- drivers/infiniband/hw/efa/efa_verbs.c | 1 + 1 file changed, 1 insertion(+)
drivers/infiniband/hw/efa/efa_verbs.c +1 -0
@@ -209,6 +209,7 @@ int efa_query_device(struct ib_device *ibdev, props->max_send_sge = dev_attr->max_sq_sge; props->max_recv_sge = dev_attr->max_rq_sge; props->max_sge_rd = dev_attr->max_wr_rdma_sge; + props->max_pkeys =1 ;if (udata && udata->outlen) { resp.max_sq_sge = dev_attr->max_sq_sge;
base-commit: 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162
Signature · 1 line
2.27.0
Jason Gunthorpe
AppliedQuoted 10 lines · Gal Pressman
The
max_pkeysdevice attribute was not set in query device verb, set it to one in order to account for the default pkey (0xffff).Fixes 40909f664d27 ("RDMA/efa: Add EFA verbs implementation")Reviewed-by Firas JahJah <[email protected]>Reviewed-by Yossi Leybovich <[email protected]>Signed-off-by Gal Pressman <[email protected]>--- drivers/infiniband/hw/efa/efa_verbs.c | 1 + 1 file changed, 1 insertion(+)
Applied to for-rc
Thanks,
Jason