On Wed, Jul 11, 2018 at 12:32:56PM +0300, Yishai Hadas wrote:
> >>+static int UVERBS_HANDLER(MLX5_IB_METHOD_FLOW_MATCHER_CREATE)(struct
> >>ib_device *ib_dev,
> >>+ struct ib_uverbs_file *file,
> >>+ struct uverbs_attr_bundle *attrs)
> >>+{
> >>+ struct mlx5_ib_dev *dev = to_mdev(ib_dev);
> >
> >I have a patch changing these - when working with uobj's the ib_dev
> >argument should not be used, the ib_dev must come from the ucontext
> >instead.
> >
>
> OK, V1 will take the ib_dev from the uobj.
>
> However, does it mean that you are going to change the signatures of all the
> handlers to *not* get ib_dev ?
Yes.
Jason