• Jason Gunthorpe's avatar
    RDMA/uverbs: Add helpers to mark uapi functions as unsupported · 6829c1c2
    Jason Gunthorpe authored
    We have many cases where parts of the uapi are not supported in a driver,
    needs a certain protocol, or whatever. It is best to reflect this directly
    into the struct uverbs_api when it is built so that everything is simply
    blocked off, and future introspection can report a proper supported list.
    
    This is done by adding some additional helpers to the definition list
    language that disable objects based on a 'supported' call back, and a
    helper that disables based on a NULL struct ib_device function pointer.
    
    Disablement is global. For instance, if a driver disables an object then
    everything connected to that object is removed, including core methods.
    Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
    Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
    6829c1c2
uverbs_main.c 40.6 KB