diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2018-11-25 20:51:20 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-11-26 16:48:07 -0700 |
commit | 07f05f40d956d40f32852a7b3ff109a72d254cf9 (patch) | |
tree | b92baff7535b981cb6590e49a070f5935b30d5cc /drivers/infiniband/core/rdma_core.h | |
parent | 3a6532c9af1a7836da2d597f1aaca73cb16c3b97 (diff) | |
download | blackbird-op-linux-07f05f40d956d40f32852a7b3ff109a72d254cf9.tar.gz blackbird-op-linux-07f05f40d956d40f32852a7b3ff109a72d254cf9.zip |
RDMA/uverbs: Use uverbs_attr_bundle to pass udata for ioctl()
Have the core code initialize the driver_udata if the method has a udata
description. This is done using the same create_udata the handler was
supposed to call.
This makes ioctl consistent with the write and write_ex paths.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/rdma_core.h')
-rw-r--r-- | drivers/infiniband/core/rdma_core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/core/rdma_core.h b/drivers/infiniband/core/rdma_core.h index b11396536d8e..b1bf1579fc26 100644 --- a/drivers/infiniband/core/rdma_core.h +++ b/drivers/infiniband/core/rdma_core.h @@ -131,6 +131,7 @@ struct uverbs_api_ioctl_method { u8 use_stack:1; u8 driver_method:1; u8 disabled:1; + u8 has_udata:1; u8 key_bitmap_len; u8 destroy_bkey; }; |