From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH] cma: resolve to first active IB port Date: Fri, 9 Dec 2016 09:38:03 -0700 Message-ID: <20161209163803.GA31304@obsidianresearch.com> References: <1828884A29C6694DAF28B7E6B8A82373AB0BC8BE@ORSMSX109.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jinpu Wang Cc: "Hefty, Sean" , Doug Ledford , Hal Rosenstock , "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Michael Wang List-Id: linux-rdma@vger.kernel.org On Fri, Dec 09, 2016 at 10:31:00AM +0100, Jinpu Wang wrote: > > I do have a concern about accessing non-cached port data as part > > of this call. Can we cache the port state and use that instead? > > Thanks for review. > > Sure, I updated the v2 patch as attached, is this what you want? > > Note: in cma_resolve_loopback, it does the same, I leave it like that > for now, I can also update this part if you like. I feel like we already have a cache for subnet prefix, or maybe another patch series added one? Can't remember, sorry. In any event, this caching should probably live in the core code not the cma.... 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