From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH 2/2] rdma/cm: allow user to specify IP to DGID mapping Date: Wed, 7 Oct 2009 18:54:25 -0600 Message-ID: <20091008005425.GW5191@obsidianresearch.com> References: <4ACAF913.3050909@voltaire.com> <15ddcffd0910071523w4f229b14j905ad170ceb8c21f@mail.gmail.com> <9F4DE6A2B4F644698E94F00C4FEEF30A@amr.corp.intel.com> <0A383504E0E54C949DEF84405E3AE92F@amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <0A383504E0E54C949DEF84405E3AE92F-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Sean Hefty Cc: 'Or Gerlitz' , Or Gerlitz , linux-rdma , Roland Dreier List-Id: linux-rdma@vger.kernel.org On Wed, Oct 07, 2009 at 05:38:27PM -0700, Sean Hefty wrote: > >When used over IB, the IP address is little more than a qualifier contained > >within the IB CM REQ private data. > > If we added support for AF_GID/AF_IB to the kernel, the rdma_cm > could leave all of the private data carried in the IB CM REQ > entirely up to the user. If the user happens to format that data to > look like the CMA header, so be it. I believe this would allow for > a 'clean' implementation of rdma_resolve_addr, preserve the ABI, and > still allow a library to provide backwards compatibility. Yep, not sure how you handle the listening side without port conflicts?? But that doesn't seem to be a huge problem. TBH - since ACM is kinda its own little world, it could just use a seperate service ID space from RDMA CM? > The following information should be known after calling > rdma_resolve_addr: sgid, dgid, pkey, source port/sid, destination > port/sid. The address structure for AF_IB should be defined to > capture this information. (The port / service ID needs to be worked > out.) Yes, that seems great.. What API would you use to pass the PR data? What do you think of a 'rdma_get_addr_info' that could be where libacm hooks? > Would this approach combined with the ability to set the route work for > everyone? 'set the route' ? You mean the 'ip route get' thingy? Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html