]> asedeno.scripts.mit.edu Git - linux.git/commit
IB/uverbs: Add IDRs array attribute type to ioctl() interface
authorGuy Levi <guyle@mellanox.com>
Thu, 6 Sep 2018 14:27:01 +0000 (17:27 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 11 Sep 2018 15:28:06 +0000 (09:28 -0600)
commit70cd20aed00f719f3536154df02596106e431e45
tree2b5a333239617d3a3c6445c67c637458fcf93c42
parente806f9328ba424b371766899af3c3cf4616e5522
IB/uverbs: Add IDRs array attribute type to ioctl() interface

Methods sometimes need to get a flexible set of IDRs and not a strict set
as can be achieved today by the conventional IDR attribute. Add a new
IDRS_ARRAY attribute to the generic uverbs ioctl layer.

IDRS_ARRAY points to array of idrs of the same object type and same access
rights, only write and read are supported.

Signed-off-by: Guy Levi <guyle@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>``
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_ioctl.c
drivers/infiniband/core/uverbs_uapi.c
include/rdma/uverbs_ioctl.h
include/uapi/rdma/rdma_user_ioctl_cmds.h