From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [RFC v1 for accelerated IPoIB 05/25] IB/ipoib: Support ipoib acceleration options callbacks Date: Tue, 14 Mar 2017 09:44:19 -0600 Message-ID: <20170314154419.GB3244@obsidianresearch.com> References: <1489429896-10781-1-git-send-email-erezsh@mellanox.com> <1489429896-10781-6-git-send-email-erezsh@mellanox.com> <20170314063538.GB79937@knc-06.sc.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Erez Shitrit , dledford@redhat.com, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, valex@mellanox.com, leonro@mellanox.com, saedm@mellanox.com, erezsh@dev.mellanox.co.il To: "Vishwanathapura, Niranjana" Return-path: Received: from quartz.orcorp.ca ([184.70.90.242]:46124 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751313AbdCNPoY (ORCPT ); Tue, 14 Mar 2017 11:44:24 -0400 Content-Disposition: inline In-Reply-To: <20170314063538.GB79937@knc-06.sc.intel.com> Sender: netdev-owner@vger.kernel.org List-ID: On Mon, Mar 13, 2017 at 11:35:38PM -0700, Vishwanathapura, Niranjana wrote: > This will break ipoib on hfi1 as hfi1 will define alloc_rdma_netdev for > OPA_VNIC type. We should probably look for a dedicated return type > (-ENODEV?) to determine of the driver supports specified rdma netdev type. > Or use a ib device attribute to suggest driver support ipoib rdma netdev. I think I prefer call and detect ENOSUPP or whatever than yet another flag. Jason