]> git.ipfire.org Git - thirdparty/linux.git/commit
IB/core: Introduce UVERBS_IDR_ANY_OBJECT
authorYishai Hadas <yishaih@mellanox.com>
Mon, 26 Nov 2018 06:28:33 +0000 (08:28 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 4 Dec 2018 18:46:41 +0000 (13:46 -0500)
commit4d7e8cc57429e1874658acbff98d3877c81cd0a4
treec6052f9ab683b76929a5a9dc17287d2692585e89
parentf33cb7e760dee94dd2b2d7a7f6225578a66a17d5
IB/core: Introduce UVERBS_IDR_ANY_OBJECT

Introduce the UVERBS_IDR_ANY_OBJECT type to match any IDR object.

Once used, the infrastructure skips checking for the IDR type, it
becomes the driver handler responsibility.

This enables drivers to get in a given method an object from various of
types.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/rdma_core.c
drivers/infiniband/core/rdma_core.h
drivers/infiniband/core/uverbs_uapi.c
include/rdma/uverbs_ioctl.h