From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [RFC 00/11] QLogic RDMA Driver (qedr) RFC Date: Wed, 14 Sep 2016 11:17:37 -0600 Message-ID: <20160914171737.GH16014@obsidianresearch.com> References: <1473696465-27986-1-git-send-email-Ram.Amrani@qlogic.com> <20160912180508.GI5843@obsidianresearch.com> <20160913154000.GA25878@obsidianresearch.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org To: "Amrani, Ram" Cc: "dledford@redhat.com" , David Miller , Yuval Mintz , Ariel Elior , Michal Kalderon , Rajesh Borundia , "linux-rdma@vger.kernel.org" , netdev List-Id: linux-rdma@vger.kernel.org On Wed, Sep 14, 2016 at 02:44:47PM +0000, Amrani, Ram wrote: > > Anything that is used with copy_to/from_user, ib_copy_to/from_udata, > > etc, etc must be in a include/uapi header. > > > > Any constant you might want to copy into your userspace provider must > > be in include/uapi. > > > I understand you mean something like > https://www.spinics.net/lists/linux-rdma/msg40414.html ([RFC > rdma-next 0/3] Move mlx5 vendor specific to UAPI directory) Yes. > > Avoid copying headers in your user space and use the standard kernel > > names to access your driver's uapi. > So the user library should be able to compile against these headers > in their location and not hold identical copies. Yes, but you will need identical copies for supporting old distros. > What do you mean by "standard kernel names"? By that I mean 'identical copies' do not copy the file and then randomly change it giving things different names or putting different content in structs. You will want to submit your user provider to rdma-plumbing to get it into the distros, we are planning to set it as the vehicle for code targeting 4.9 Jason