diff options
author | Gal Pressman <galpress@amazon.com> | 2019-01-22 11:08:22 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-01-31 06:32:25 +0300 |
commit | 6780c4fa9d6e091b2f206ac429a40e2e8d2e45f3 (patch) | |
tree | d53b9ef08b0a56df944b780549bd81674afdb6d3 /drivers/infiniband/hw/mlx5/main.c | |
parent | 459cc69fa4c17caf21de596693d8a07170820a58 (diff) | |
download | linux-6780c4fa9d6e091b2f206ac429a40e2e8d2e45f3.tar.xz |
RDMA: Add indication for in kernel API support to IB device
Drivers that do not provide kernel verbs support should not be used by ib
kernel clients at all.
In case a device does not implement all mandatory verbs for kverbs usage
mark it as a non kverbs provider and prevent its usage for all clients
except for uverbs.
The device is marked as a non kverbs provider using the 'kverbs_provider'
flag which should only be set by the core code. The clients can choose
whether kverbs are requested for its usage using the 'no_kverbs_req' flag
which is currently set for uverbs only.
This patch allows drivers to remove mandatory verbs stubs and simply set
the callbacks to NULL. The IB device will be registered as a non-kverbs
provider. Note that verbs that are required for the device registration
process must be implemented.
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/main.c')
0 files changed, 0 insertions, 0 deletions