Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754973AbbDMUeB (ORCPT ); Mon, 13 Apr 2015 16:34:01 -0400 Received: from quartz.orcorp.ca ([184.70.90.242]:37395 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751549AbbDMUd7 (ORCPT ); Mon, 13 Apr 2015 16:33:59 -0400 Date: Mon, 13 Apr 2015 14:33:50 -0600 From: Jason Gunthorpe To: Michael Wang Cc: Roland Dreier , Sean Hefty , Hal Rosenstock , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Tucker , Steve Wise , Hoang-Nam Nguyen , Christoph Raisch , Mike Marciniszyn , Eli Cohen , Faisal Latif , Jack Morgenstein , Or Gerlitz , Haggai Eran , Ira Weiny , Tom Talpey , Doug Ledford Subject: Re: [PATCH v3 27/28] IB/Verbs: Clean up rdma_ib_or_iboe() Message-ID: <20150413203350.GA20611@obsidianresearch.com> References: <552BB470.4090407@profitbricks.com> <552BB85D.7010400@profitbricks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <552BB85D.7010400@profitbricks.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Broken-Reverse-DNS: no host name found for IP address 10.0.0.183 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1237 Lines: 31 On Mon, Apr 13, 2015 at 02:36:45PM +0200, Michael Wang wrote: > We have finished introducing the cap_XX(), and raw helper rdma_ib_or_iboe() > is no longer necessary, thus clean it up. So, the net result is not looking too bad, but I'm confused about the structure of this series. Why introduce query_transport early on? Why is the patch series going through this progression most lines? - if (rdma_port_get_link_layer(device, port_num) == IB_LINK_LAYER_INFINIBAND) { + if (rdma_tech_ib(device, port_num)) { + if (cap_ib_smi(device, port_num)) { This would be a lot shorter and simpler to look at if the cap's were introduced first, then their implementation finalized. I thought we agreed Doug's bitmask plan should be the final destination for this series, so this progress seems even stranger? I would be very happy to see a patch that adds cap_ib_smi to the current tree and states 'This patch is tested to have no change on the binary compilation results' Jason -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/