]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/uverbs: Use uverbs_attr_bundle to pass udata for ioctl()
authorJason Gunthorpe <jgg@mellanox.com>
Sun, 25 Nov 2018 18:51:20 +0000 (20:51 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 26 Nov 2018 23:48:07 +0000 (16:48 -0700)
commit07f05f40d956d40f32852a7b3ff109a72d254cf9
treeb92baff7535b981cb6590e49a070f5935b30d5cc
parent3a6532c9af1a7836da2d597f1aaca73cb16c3b97
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>
drivers/infiniband/core/rdma_core.h
drivers/infiniband/core/uverbs_ioctl.c
drivers/infiniband/core/uverbs_std_types_cq.c
drivers/infiniband/core/uverbs_uapi.c
include/rdma/uverbs_ioctl.h