From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965032AbbCSR3o (ORCPT ); Thu, 19 Mar 2015 13:29:44 -0400 Received: from mail-wg0-f48.google.com ([74.125.82.48]:33910 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755327AbbCSR3k (ORCPT ); Thu, 19 Mar 2015 13:29:40 -0400 Message-ID: <550B0780.9040406@profitbricks.com> Date: Thu, 19 Mar 2015 18:29:36 +0100 From: Michael Wang User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: "Hefty, Sean" , Roland Dreier , Hal Rosenstock , "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Or Gerlitz , "Weiny, Ira" , Moni Shoua , "Nikolova, Tatyana E" , Steve Wise , Yan Burman , Jack Morgenstein , Bart Van Assche , Yann Droneaud , "David S. Miller" , "Estrin, Alex" , Doug Ledford , Eric Dumazet , Erez Shitrit , Haggai Eran , Sagi Grimberg , Shachar Raindel , Eli Cohen , Matan Barak , "Marciniszyn, Mike" Subject: Re: [PATCH RFC] IB/verbs: introduce rdma_transport_is_ib() to check transport type References: <550AD2D6.7030800@profitbricks.com> <1828884A29C6694DAF28B7E6B8A8237399E821EA@ORSMSX109.amr.corp.intel.com> In-Reply-To: <1828884A29C6694DAF28B7E6B8A8237399E821EA@ORSMSX109.amr.corp.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Sean Thanks for point it out for me :-) I'll try to follow the conversation to understand what really needs to be done, see if I could do some contribution on it. Regards, Michael Wang On 03/19/2015 06:02 PM, Hefty, Sean wrote: >> We have plenty of places where we don't care what exactly the >> transport type is, but only care if it's IB type. >> >> This patch introduce rdma_transport_is_ib() as shortcuts to check >> whether an 'ib_device' is infiniband transport type, which help us to >> save some code. > In most of these places, the check that we want is whether IB management is used. The transport check is an indirect way of checking for that, and I believe we should use a more direct method of checking for the functionality that's actually desired. > > Please see the following thread that is related to these changes: > > http://www.spinics.net/lists/linux-rdma/msg23484.html > > - Sean