From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by dpdk.org (Postfix) with ESMTP id DE654B36B for ; Wed, 16 Jul 2014 16:26:13 +0200 (CEST) Received: by mail-wi0-f169.google.com with SMTP id n3so5867993wiv.0 for ; Wed, 16 Jul 2014 07:27:05 -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=v1nlpYItxBqgsKGFT8+Ek7Kh7TOFGQy57sbbFPd0XeE=; b=L9aVpQ9X/GEOaRVrhIV7yB+C/+M/I2kYV+NFO3/Oaj0U7sQJ1b5aHwG0wse+c7FinK rb7SWRLGpcg3vsSYqcZmEgZoIklFyudYMBA9NxSueeuVBbCbpwV89fml7lGkBudvaW85 1qUka+hClEi9zH/gcc2JrxwtoKX4RpID7ODTFITZBtN3rAlYHNWksJomNUKLU+hBpRpx JVKrHckNexBsMAUbS4AOADFAuXWgBU2zVPwom2bxr2mngjqBploKbFdzrOC223H/cqC0 y2q7a8jj7LQ9PwsaK8QyE4g/0kWJGr/alUTecIvYYVjM2PVwnA5XMpFGdZEb4mxGDBxh gXTw== X-Gm-Message-State: ALoCoQlnQs10u3kiZR7YGie2iMt44mHhDv+3Sj4Kno1LpuUfmXj9iiLqqCTRgi+0f+AVQIidBPbG X-Received: by 10.180.36.225 with SMTP id t1mr14468551wij.38.1405520822858; Wed, 16 Jul 2014 07:27:02 -0700 (PDT) Received: from xps13.localnet (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id x3sm9619073wia.11.2014.07.16.07.27.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jul 2014 07:27:02 -0700 (PDT) From: Thomas Monjalon To: "John W. Linville" Date: Wed, 16 Jul 2014 16:26:52 +0200 Message-ID: <6537905.kV7cN4HSlQ@xps13> Organization: 6WIND User-Agent: KMail/4.13.2 (Linux/3.15.5-1-ARCH; KDE/4.13.2; x86_64; ; ) In-Reply-To: <20140716140744.GD13555@tuxdriver.com> References: <1405024369-30058-1-git-send-email-linville@tuxdriver.com> <5622385.bvoogjtUK7@xps13> <20140716140744.GD13555@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: Wed, 16 Jul 2014 14:26:14 -0000 2014-07-16 10:07, John W. Linville: > 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? 2.6.32 is the minimum version. But it's known to be easily usable since Linux 2.6.34. -- Thomas