]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
RDMA: Report available cdevs through RDMA_NLDEV_CMD_GET_CHARDEV
authorJason Gunthorpe <jgg@mellanox.com>
Fri, 14 Jun 2019 00:38:19 +0000 (21:38 -0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 19 Jun 2019 02:44:08 +0000 (22:44 -0400)
commit8f71bb0030b8816f57be142f95b3c7189c6eaf4c
treefc55bb9f34f8af9c06fe52c40ba1f18a0996ce7e
parent0e2d00eb6fd45f2a645f4874286bdc5b4b53782b
RDMA: Report available cdevs through RDMA_NLDEV_CMD_GET_CHARDEV

Update the struct ib_client for all modules exporting cdevs related to the
ibdevice to also implement RDMA_NLDEV_CMD_GET_CHARDEV. All cdevs are now
autoloadable and discoverable by userspace over netlink instead of relying
on sysfs.

uverbs also exposes the DRIVER_ID for drivers that are able to support
driver id binding in rdma-core.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/device.c
drivers/infiniband/core/nldev.c
drivers/infiniband/core/ucma.c
drivers/infiniband/core/user_mad.c
drivers/infiniband/core/uverbs_main.c
drivers/infiniband/hw/cxgb3/iwch_provider.c
drivers/infiniband/hw/hns/hns_roce_main.c
drivers/infiniband/hw/mthca/mthca_provider.c
include/rdma/ib_verbs.h
include/uapi/rdma/rdma_netlink.h