]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7df1397702b55397582cf753951779af49fa1ce3
treeef0de114cf813633b2213bb2f2e3e938b89c23a7
parentccbcd2d46b660d916b755edbfdd9dc789778bef6
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: 1d3734ebd6cc ("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