IB/core: Add idr based standard types
authorMatan Barak <matanb@mellanox.com>
Tue, 4 Apr 2017 10:31:43 +0000 (13:31 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 5 Apr 2017 17:28:04 +0000 (13:28 -0400)
commit6be60aed126ccd4dfb4a60d1dc2ecec0bca21b2e
tree31764e2f00ed54dc264a7e71d1dd16830152b987
parent3832125624b75b54567be906e9aa67e1343be569
IB/core: Add idr based standard types

This patch adds the standard idr based types. These types are
used in downstream patches in order to initialize, destroy and
lookup IB standard objects which are based on idr objects.

An idr object requires filling out several parameters. Its op pointer
should point to uverbs_idr_ops and its size should be at least the
size of ib_uobject. We add a macro to make the type declaration easier.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/Makefile
drivers/infiniband/core/uverbs.h
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_main.c
drivers/infiniband/core/uverbs_std_types.c [new file with mode: 0644]
include/rdma/uverbs_std_types.h [new file with mode: 0644]
include/rdma/uverbs_types.h