]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Refactor idr to be per uverbs_file
authorMatan Barak <matanb@mellanox.com>
Tue, 4 Apr 2017 10:31:41 +0000 (13:31 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 5 Apr 2017 17:28:04 +0000 (13:28 -0400)
commit29f7f122ac5b2b6c24f9f939a884fdaf2d049b31
tree0314b5f1027fc0e7561a8a3421ce566077eb3596
parent934778e31a56dfe7dd1b2bbcd6063538c354fb9e
IB/core: Refactor idr to be per uverbs_file

The current code creates an idr per type. Since types are currently
common for all drivers and known in advance, this was good enough.
However, the proposed ioctl based infrastructure allows each driver
to declare only some of the common types and declare its own specific
types.

Thus, we decided to implement idr to be per uverbs_file.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Reviewed-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs.h
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_main.c
include/rdma/ib_verbs.h