IB/uverbs: Add macros to simplify adding driver specific attributes
authorMatan Barak <matanb@mellanox.com>
Mon, 19 Mar 2018 13:02:39 +0000 (15:02 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 19 Mar 2018 20:45:17 +0000 (14:45 -0600)
commit3d64addd435997a445d201fcbbde2fa753709971
tree8aebc94ded3ec642008f02474d8521a426305ef9
parent41b2a71fc848e200e023b7ccd502c3b96714248d
IB/uverbs: Add macros to simplify adding driver specific attributes

Previously, adding driver specific attributes required drivers to
declare all the hierarchy - object tree, object, methods and the
attributes themselves. A common use case is adding a few attributes to
an existing common method.
In order to simplify the driver's code, we add some macros to do all
these declarations automatically.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
include/rdma/uverbs_named_ioctl.h