IB/core: Add DEVICE object and root tree structure
authorMatan Barak <matanb@mellanox.com>
Thu, 3 Aug 2017 13:06:59 +0000 (16:06 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 31 Aug 2017 12:35:10 +0000 (08:35 -0400)
commit09e3ebf8c193d3f154c4ffb7cb18995df0243bc6
tree7e69544add3462ad7e0b4f91b8f9ed961b066c03
parent5009010fbf54bdc27e57baca490e1f9d6a4609e0
IB/core: Add DEVICE object and root tree structure

This adds the DEVICE object. This object supports creating the context
that all objects are created from. Moreover, it supports executing
methods which are related to the device itself, such as QUERY_DEVICE.
This is a singleton object (per file instance).

All standard objects are put in the root structure. This root will later
on be used in drivers as the source for their whole parsing tree.
Later on, when new features are added, these drivers could mix this root
with other customized objects.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_std_types.c
include/rdma/uverbs_ioctl.h
include/rdma/uverbs_std_types.h