]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd23e0671ad47a7ef3398aa6a0d9ecdac9e22e3e2
tree31764e2f00ed54dc264a7e71d1dd16830152b987
parent64b9060fbcb0e2068c4e3050fd461229a8599535
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