RDMA/uverbs: Convert the write interface to use uverbs_api
authorJason Gunthorpe <jgg@mellanox.com>
Mon, 12 Nov 2018 20:59:56 +0000 (22:59 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 22 Nov 2018 18:57:33 +0000 (11:57 -0700)
commitd120c3c91871650699ac8e71795925cc98358c3d
tree8d832e280cfa22621426598d003eff806280f2cc
parent6884c6c4bd09fb35b79a3967d15821cdfcbe77a3
RDMA/uverbs: Convert the write interface to use uverbs_api

This organizes the write commands into objects and links them to the
uverbs_api data structure. The command path is reworked to use uapi
instead of its internal structures.

The command mask is moved from a runtime check to a registration time
check in the uapi.

Since the write interface does not have the object ID as part of the
command, the radix bins are converted into linear lists to support the
lookup.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/infiniband/core/rdma_core.h
drivers/infiniband/core/uverbs.h
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_main.c
drivers/infiniband/core/uverbs_uapi.c