From mboxrd@z Thu Jan 1 00:00:00 1970 From: "John W. Linville" Subject: Re: [PATCH] librte_pmd_packet: add PMD for AF_PACKET-based virtual devices Date: Wed, 16 Jul 2014 10:07:44 -0400 Message-ID: <20140716140744.GD13555@tuxdriver.com> References: <1405024369-30058-1-git-send-email-linville@tuxdriver.com> <9007827.iVFoEikAOq@xps13> <20140714134616.GC27848@tuxdriver.com> <5622385.bvoogjtUK7@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev-VfR2kkLFssw@public.gmane.org To: Thomas Monjalon Return-path: Content-Disposition: inline In-Reply-To: <5622385.bvoogjtUK7@xps13> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" On Tue, Jul 15, 2014 at 11:27:45PM +0200, Thomas Monjalon wrote: > 2014-07-14 09:46, John W. Linville: > > On Sat, Jul 12, 2014 at 12:34:46AM +0200, Thomas Monjalon wrote: > > > 2014-07-11 13:40, John W. Linville: > > > > Is there an example of code in DPDK that requires specific kernel > > > > versions? What is the preferred method for coding such dependencies? > > > > > > No there is no userspace code checking kernel version in DPDK. > > > Feel free to use what you think the best method. > > > Please keep in mind that checking version number is a maintenance > > > nightmare > > > because of backports (like RedHat do ;). > > > > I suppose that it could be a configuration option? > > If there is no other way to configure kernel-dependent features, we can add > options. But I feel that relying on a macro (#ifdef) would be better if such > macro exist. I can add #ifdef or #if defined() for the newer definitions. Is there a minimum kernel version supported today? John -- John W. Linville Someday the world will need a hero, and you linville-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org might be all we have. Be ready.