]> asedeno.scripts.mit.edu Git - linux.git/commit
IB/uverbs: Move to new headers and make naming consistent
authorMatan Barak <matanb@mellanox.com>
Mon, 19 Mar 2018 13:02:33 +0000 (15:02 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 19 Mar 2018 20:45:17 +0000 (14:45 -0600)
commit1f7ff9d5d36ae11356012a136f2d495cca910a5f
tree1a6aefe89da67e1e3f79c81266b64786a65ae6b6
parentb470c154c600e427592df5237596ce0f33ce7d9f
IB/uverbs: Move to new headers and make naming consistent

Use macros to make names consistent in ioctl() uAPI:
The ioctl() uAPI works with object-method hierarchy. The method part
also states which handler should be executed when this method is called
from user-space. Therefore, we need to tie method, method's id, method's
handler and the object owning this method together.
Previously, this was done through explicit developer chosen names.
This makes grepping the code harder. Changing the method's name,
method's handler and object's name to be automatically generated based
on the ids.

The headers are split in a way so they be included and used by
user-space. One header strictly contains structures that are used
directly by user-space applications, where another header is used for
internal library (i.e. libibverbs) to form the ioctl() commands.
Other header simply contains the required general command structure.

Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs.h
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_std_types.c
include/rdma/uverbs_ioctl.h
include/rdma/uverbs_named_ioctl.h [new file with mode: 0644]
include/rdma/uverbs_std_types.h
include/uapi/rdma/ib_user_ioctl_cmds.h [new file with mode: 0644]
include/uapi/rdma/ib_user_ioctl_verbs.h
include/uapi/rdma/rdma_user_ioctl.h
include/uapi/rdma/rdma_user_ioctl_cmds.h [new file with mode: 0644]