]> 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)
commit19e7e394dd6587fb5ef8e9d3792537862b2df6f0
treeef0de114cf813633b2213bb2f2e3e938b89c23a7
parent197dd874806724bbdfd8d53a3f4d3591d5cb6f73
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: 0c1a5f4cd0b6 ("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