Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752078AbbDPP2w (ORCPT ); Thu, 16 Apr 2015 11:28:52 -0400 Received: from mail-wg0-f48.google.com ([74.125.82.48]:34085 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751024AbbDPP2n (ORCPT ); Thu, 16 Apr 2015 11:28:43 -0400 Message-ID: <552FD527.4060507@profitbricks.com> Date: Thu, 16 Apr 2015 17:28:39 +0200 From: Michael Wang User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: "Hefty, Sean" , Hal Rosenstock , Or Gerlitz CC: Roland Dreier , Hal Rosenstock , "linux-rdma@vger.kernel.org" , Linux Kernel , Tom Tucker , Steve Wise , Hoang-Nam Nguyen , Christoph Raisch , infinipath , Eli Cohen , "Latif, Faisal" , Jack Morgenstein , Or Gerlitz , Haggai Eran , "Weiny, Ira" , Tom Talpey , Jason Gunthorpe , Doug Ledford Subject: Re: [PATCH v3 25/28] IB/Verbs: Use management helper cap_af_ib() References: <552BB470.4090407@profitbricks.com> <552BB801.2010506@profitbricks.com> <552FC441.5070500@dev.mellanox.co.il> <1828884A29C6694DAF28B7E6B8A82373A8FC23BF@ORSMSX109.amr.corp.intel.com> In-Reply-To: <1828884A29C6694DAF28B7E6B8A82373A8FC23BF@ORSMSX109.amr.corp.intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1482 Lines: 39 On 04/16/2015 05:09 PM, Hefty, Sean wrote: [snip] >>> Sean, can you please put a precise writeup what does it take to >>> support AF_IB... I am a bit >>> confused here and wasn't sure if this can be supported with RoCE. >> >> I think this means IB GID addressing is checked (Native Infiniband >> Address) and not AF_IB (which is socket address/protocol family like >> INET and INET6). >> >> I think this naming is confusing and maybe cap_ib_gid is better ? > > I need to trace back through the code to see where this is used, but I thought the check was determining if an address conveyed using sockaddr_ib applied to the port. Sockaddr_ib was intended to target IB-classic specifically. It should apply to RoCE/IBoE as well. I don't think it applies to RoCEv2/IBoUDP without a translation. The usage is: rdma_resolve_addr { ... if dst_addr->sa_family == AF_IB cma_resolve_ib_addr --> cma_resolve_ib_dev else rdma_resolve_ip ... } So I guess IBoE using ib address rather than ip? Regards, Michael Wang > -- 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/