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 Cc: Leon Romanovsky , Doug Ledford , Leon Romanovsky , RDMA mailing list , Yishai Hadas , Saeed Mahameed , linux-netdev , Majd Dibbiny To: Yishai Hadas Return-path: Received: from mail-pl0-f67.google.com ([209.85.160.67]:33828 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726269AbeGKMGd (ORCPT ); Wed, 11 Jul 2018 08:06:33 -0400 Received: by mail-pl0-f67.google.com with SMTP id z9-v6so9066589plo.1 for ; Wed, 11 Jul 2018 05:02:33 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: 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