Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965120AbbDXOt4 (ORCPT ); Fri, 24 Apr 2015 10:49:56 -0400 Received: from mail-db3on0087.outbound.protection.outlook.com ([157.55.234.87]:42816 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757709AbbDXOtv (ORCPT ); Fri, 24 Apr 2015 10:49:51 -0400 From: Liran Liss To: "Hefty, Sean" , "Weiny, Ira" , "linux-kernel@vger.kernel.org" , "linux-rdma@vger.kernel.org" CC: Michael Wang , Roland Dreier , Hal Rosenstock , "hal@dev.mellanox.co.il" , Tom Tucker , Steve Wise , Hoang-Nam Nguyen , "raisch@de.ibm.com" , infinipath , Eli Cohen , "Latif, Faisal" , "Jack Morgenstein" , Or Gerlitz , Haggai Eran , Tom Talpey , "Jason Gunthorpe" , Doug Ledford Subject: RE: [PATCH v5 00/27] IB/Verbs: IB Management Helpers Thread-Topic: [PATCH v5 00/27] IB/Verbs: IB Management Helpers Thread-Index: AQHQe0QWgYjx3AmeeEu2Ae1BasUTY51YB1mAgABNxACAAOqHgIAC/1Rw Date: Fri, 24 Apr 2015 14:49:49 +0000 Message-ID: References: <5534B8C9.506@profitbricks.com> <20150422024123.GA18675@phlsvsds.ph.intel.com> <1828884A29C6694DAF28B7E6B8A82373A8FC64BD@ORSMSX109.amr.corp.intel.com> In-Reply-To: <1828884A29C6694DAF28B7E6B8A82373A8FC64BD@ORSMSX109.amr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [85.250.13.154] authentication-results: intel.com; dkim=none (message not signed) header.d=none; x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB4PR05MB445; x-forefront-antispam-report: BMV:1;SFV:NSPM;SFS:(10009020)(6009001)(51704005)(51444003)(46102003)(92566002)(62966003)(86362001)(2900100001)(2656002)(87936001)(74316001)(76576001)(122556002)(2950100001)(33656002)(19580405001)(54356999)(50986999)(19580395003)(66066001)(76176999)(2201001)(40100003)(93886004)(2501003)(106116001)(77156002)(102836002)(5001770100001);DIR:OUT;SFP:1101;SCL:1;SRVR:DB4PR05MB445;H:DB4PR05MB0863.eurprd05.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5002010)(5005006)(3002001);SRVR:DB4PR05MB445;BCL:0;PCL:0;RULEID:;SRVR:DB4PR05MB445; x-forefront-prvs: 05568D1FF7 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Apr 2015 14:49:49.2530 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR05MB445 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id t3OEo55R001410 Content-Length: 1721 Lines: 44 > From: Hefty, Sean [mailto:sean.hefty@intel.com] [snip] > > > So, I think that our "old-transport" below is just fine. > > > No need to change it (and you aren't, since it is currently > > > implemented > > as a function). > > > > I think there is a need to change this. Encoding the transport into > > the node type is not a good idea. Having different "transport > > semantics" while still returning the same transport for the port is > > confusing. > > > > The only thing which is clear currently is Link Layer. > > > > But the use of "Link Layer" in the code is so convoluted that it is > > very confusing. > > I agree. > > One could implement software iWarp or IBoUDP (RoCEv2) protocols that > could run over any link layer and interoperate with existing HW solutions. > The stack shouldn't be dealing with the link level at all, with the exception of > user space compatibility. > > > Define Transport? There has been a lot of discussion over what a > > transport is in Verbs. > > IMO, we should replace using the word 'transport' with just 'rdma_protocol'. > And even then I'm not convinced that anything should care, beyond user > space compatibility. The caps are what matter. > > - Sean I completely agree. If we ever see a need for representing a set or subset of cross-layer protocols (at any level, L2-L4, various encapsulations), we will add the proper management helpers. For example: - rdma_protocol_roce() /* both v1 and v2 */ - rdma_protocol_roce_v1() - rdma_protocol_roce_v2() - rdma_protocol_usnic() - rdma_protocol_usnic_udp() ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?