• Gal Pressman's avatar
    RDMA: Add indication for in kernel API support to IB device · 6780c4fa
    Gal Pressman authored
    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: default avatarGal Pressman <galpress@amazon.com>
    Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
    6780c4fa
ib_verbs.h 122 KB