From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH rdma-next 4/9] IB/mlx5: Introduce flow steering matcher object Date: Wed, 11 Jul 2018 06:02:31 -0600 Message-ID: <20180711120231.GA23935@ziepe.ca> References: <20180708102445.25496-1-leon@kernel.org> <20180708102445.25496-5-leon@kernel.org> <20180710173450.GB8266@ziepe.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org To: Yishai Hadas Cc: Leon Romanovsky , Doug Ledford , Leon Romanovsky , RDMA mailing list , Yishai Hadas , Saeed Mahameed , linux-netdev , Majd Dibbiny List-Id: linux-rdma@vger.kernel.org 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