Re: [PATCH rdma-next v2 01/13] IB/uverbs: Add an ib_uobject getter to ioctl() infrastructure

2018-05-29 Thread Jason Gunthorpe
st ; Boris Pismenny > >; Matan Barak ; Raed > >Salem ; Yishai Hadas ; Saeed > >Mahameed ; linux-netdev > > > >Subject: Re: [PATCH rdma-next v2 01/13] IB/uverbs: Add an ib_uobject getter > >to ioctl() infrastructure > > > >On Tue, May 29, 2018 at 07

RE: [PATCH rdma-next v2 01/13] IB/uverbs: Add an ib_uobject getter to ioctl() infrastructure

2018-05-29 Thread Ruhl, Michael J
hai Hadas ; Saeed >Mahameed ; linux-netdev > >Subject: Re: [PATCH rdma-next v2 01/13] IB/uverbs: Add an ib_uobject getter >to ioctl() infrastructure > >On Tue, May 29, 2018 at 07:31:22PM +, Ruhl, Michael J wrote: >> >- struct ib_uverbs_destroy_cq_resp resp; >> &g

Re: [PATCH rdma-next v2 01/13] IB/uverbs: Add an ib_uobject getter to ioctl() infrastructure

2018-05-29 Thread Jason Gunthorpe
On Tue, May 29, 2018 at 07:31:22PM +, Ruhl, Michael J wrote: > >-struct ib_uverbs_destroy_cq_resp resp; > > struct ib_uobject *uobj = > >-uverbs_attr_get(attrs, > >UVERBS_ATTR_DESTROY_CQ_HANDLE)->obj_attr.uobject; > >-struct ib_ucq_object *obj = container_of(uobj, struct

RE: [PATCH rdma-next v2 01/13] IB/uverbs: Add an ib_uobject getter to ioctl() infrastructure

2018-05-29 Thread Ruhl, Michael J
.org>; Boris Pismenny ; Matan >Barak ; Raed Salem ; Yishai >Hadas ; Saeed Mahameed >; linux-netdev >Subject: [PATCH rdma-next v2 01/13] IB/uverbs: Add an ib_uobject getter to >ioctl() infrastructure > >From: Matan Barak > >Previously, the user had to dig inside the attrib

[PATCH rdma-next v2 01/13] IB/uverbs: Add an ib_uobject getter to ioctl() infrastructure

2018-05-29 Thread Leon Romanovsky
From: Matan Barak Previously, the user had to dig inside the attribute to get the uobject. Add a helper function that correctly extract it (and do the required checks) for him/her. Tested-by: Michael Guralnik Signed-off-by: Matan Barak Signed-off-by: Leon Romanovsky --- drivers/infiniband/co