From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f51.google.com (mail-wg0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 115171FE for ; Tue, 15 Jul 2014 23:27:05 +0200 (CEST) Received: by mail-wg0-f51.google.com with SMTP id b13so4056998wgh.34 for ; Tue, 15 Jul 2014 14:27:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=3ZjvhbFsE84i/oCWD75IkI+FmQGoJuctsiCMbJulxAM=; b=J2sbr8uRnnyvfBGQzjqH5YUozXz6zlB+DeUTVhfdFegM/5T6pGiealIw6GsEQJfqMb jfKFUfldbL8rsru4oHxLTL0GNhzt5CLYaMSbqDINXoebYRIMwrG6CuRGd3TXP9Jp0lGr X0rlxG5cKZHcgAhfs2OVOaPet3CYWelxCBS8BdMeQ0nrO9l2sm6s0G5rB4NaBrMiARMN TsJuZJ2CiMOKPzMRfjki2koa6UQ0VynmvN54QMdBb/afblorrmwy4/Elwwm000EzL8ra DXHsHCHsv+gAJEUjgYwHuhiRVvpdOk7HTJy+w/Cz2ncJKbMEcIhn1yH9GGoQtdNOALJV FYbA== X-Gm-Message-State: ALoCoQmx8dEImrbAF3lOYUelSkb8XO4/5r0UhlU7mN0H5rYB78Bv3hST0pnCTPXZ0oMIB1oj2AhE X-Received: by 10.180.208.35 with SMTP id mb3mr8668091wic.48.1405459673093; Tue, 15 Jul 2014 14:27:53 -0700 (PDT) Received: from xps13.localnet (guy78-1-82-235-116-147.fbx.proxad.net. [82.235.116.147]) by mx.google.com with ESMTPSA id ut2sm27761358wjc.49.2014.07.15.14.27.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jul 2014 14:27:52 -0700 (PDT) From: Thomas Monjalon To: "John W. Linville" Date: Tue, 15 Jul 2014 23:27:45 +0200 Message-ID: <5622385.bvoogjtUK7@xps13> Organization: 6WIND User-Agent: KMail/4.13.1 (Linux/3.14.6-1-ARCH; KDE/4.13.1; x86_64; ; ) In-Reply-To: <20140714134616.GC27848@tuxdriver.com> References: <1405024369-30058-1-git-send-email-linville@tuxdriver.com> <9007827.iVFoEikAOq@xps13> <20140714134616.GC27848@tuxdriver.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] librte_pmd_packet: add PMD for AF_PACKET-based virtual devices X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2014 21:27:05 -0000 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. -- Thomas