summaryrefslogtreecommitdiffstats
path: root/include/rdma/uverbs_ioctl.h
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-06-20 23:47:11 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-06-22 17:02:59 +0200
commit321d7863acf7b1cf921ac18cd5ad5483b3cbb7ec (patch)
tree3502d3015b6ba2949f9ba15c509c8a5281ac65f6 /include/rdma/uverbs_ioctl.h
parentMerge branch 'icrc-counter' into rdma.git for-next (diff)
downloadlinux-321d7863acf7b1cf921ac18cd5ad5483b3cbb7ec.tar.xz
linux-321d7863acf7b1cf921ac18cd5ad5483b3cbb7ec.zip
IB/uverbs: Delete type and id from uverbs_obj_attr
In this context the uobject is not allowed to be NULL, so type is the same as uobject->type, and at least for IDR, id is the same as uobject->id. FD objects should never handle the FD number outside the uAPI boundary code. Suggested-by: Guy Levi <guyle@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/rdma/uverbs_ioctl.h')
-rw-r--r--include/rdma/uverbs_ioctl.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/rdma/uverbs_ioctl.h b/include/rdma/uverbs_ioctl.h
index 970357d0ccc4..90a4947ff548 100644
--- a/include/rdma/uverbs_ioctl.h
+++ b/include/rdma/uverbs_ioctl.h
@@ -344,11 +344,7 @@ struct uverbs_ptr_attr {
};
struct uverbs_obj_attr {
- /* pointer to the kernel descriptor -> type, access, etc */
- const struct uverbs_obj_type *type;
struct ib_uobject *uobject;
- /* fd or id in idr of this object */
- int id;
};
struct uverbs_attr {