RDMA/core: Expose pkeys sysfs files only if pkey_tbl_len is set
authorKamal Heib <kamalheib1@gmail.com>
Tue, 14 Jul 2020 18:34:08 +0000 (21:34 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 20 Jul 2020 19:18:16 +0000 (16:18 -0300)
commit90efc8b2d4582feef270a5c9460178f59d812f67
tree7f7adf355428e7d5b8e47c6d9237bea29a070d65
parent5f0b2a6093a4d9aab093964c65083fe801ef1e58
RDMA/core: Expose pkeys sysfs files only if pkey_tbl_len is set

Expose the pkeys sysfs files only if the pkey_tbl_len is set by the
providers.

Link: https://lore.kernel.org/r/20200714183414.61069-2-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/sysfs.c