From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Rosenbaum Subject: Re: [RFC] libibverbs IB device hotplug support Date: Tue, 28 Feb 2017 09:56:57 +0200 Message-ID: References: <20170227185912.GM5891@obsidianresearch.com> <20170227223600.GA1526@obsidianresearch.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <20170227223600.GA1526-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jason Gunthorpe Cc: Mike Marciniszyn , Steve Wise , Lijun Ou , "M: Wei Hu(Xavier)" , Dennis Dalessandro , Tatyana Nikolova , Vladimir Sokolovsky , Yishai Hadas , Devesh Sharma , Ram Amrani , Ariel Elior , Moni Shoua , Adit Ranadive , linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org List-Id: linux-rdma@vger.kernel.org On Tue, Feb 28, 2017 at 12:36 AM, Jason Gunthorpe wrote: > On Tue, Feb 28, 2017 at 12:11:58AM +0200, Alex Rosenbaum wrote: > >> This is definitely one approach I was thinking about as well. It will >> surely help clean some of the older, not extendible API's. >> I'd like to call out to all provide library maintainer. if you have >> started code porting from the old ibv_register_driver() to the new >> extendible verbs_register_driver() then please move forward with >> submitting it. Once using the extendible 'struct verbs_device' it will >> be easy to add the new unint_device() functionality to all provided >> library in order to support plug-in for all. > > Someone is going to have to take this on.. > > Conceptually it isn't hard to do, but I figured it was too complicated > to undertake without the ability to test. > > Maybe you could help out by providing a bunch of information how to do > the conversion and show a patch for something like RXE. > > Jason We can definitely portal all providers (some extra work) but as you wrote, i'm also not sure how to proceed with code review and testing...? we'll surely need the maintainers ACK. If not, we can proceed with my initial suggestion where libraries that don't want this new HotPlug support will not change there code, and libibverbs will manage the old and new drivers list. Anyway, I'll take it with MoshS for RXE and we'll provide an example of porting a provider library to the new extendible verbs_register_driver(). Alex -- 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