RDMA/efa: Set maximum pkeys device attribute
authorGal Pressman <galpress@amazon.com>
Sun, 14 Jun 2020 10:35:34 +0000 (13:35 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 18 Jun 2020 12:41:07 +0000 (09:41 -0300)
commit0133654d8eb8607eacc96badfe49bf992155f4cb
treeef0de114cf813633b2213bb2f2e3e938b89c23a7
parent90a239ee25fa3a483facec3de7c144361a3d3a51
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). This information is
exposed to userspace and can cause malfunction

Fixes: 40909f664d27 ("RDMA/efa: Add EFA verbs implementation")
Link: https://lore.kernel.org/r/20200614103534.88060-1-galpress@amazon.com
Reviewed-by: Firas JahJah <firasj@amazon.com>
Reviewed-by: Yossi Leybovich <sleybo@amazon.com>
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/efa/efa_verbs.c