From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 09BFC38E9 for ; Wed, 16 Jul 2014 17:58:22 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 16 Jul 2014 08:59:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,673,1400050800"; d="scan'208";a="570786230" Received: from fmsmsx108.amr.corp.intel.com ([10.19.9.228]) by fmsmga002.fm.intel.com with ESMTP; 16 Jul 2014 08:59:04 -0700 Received: from fmsmsx103.amr.corp.intel.com ([169.254.3.193]) by FMSMSX108.amr.corp.intel.com ([169.254.10.232]) with mapi id 14.03.0123.003; Wed, 16 Jul 2014 08:59:03 -0700 From: "Shaw, Jeffrey B" To: Thomas Monjalon , "John W. Linville" Thread-Topic: [dpdk-dev] [PATCH] librte_pmd_packet: add PMD for AF_PACKET-based virtual devices Thread-Index: AQHPoQIR+C1eWISG2kmS7Bs0A9vaa5ui20bg Date: Wed, 16 Jul 2014 15:59:03 +0000 Message-ID: <4032A54B6BB5F04B8C08B6CFF08C59285544F6E5@FMSMSX103.amr.corp.intel.com> References: <1405024369-30058-1-git-send-email-linville@tuxdriver.com> <5622385.bvoogjtUK7@xps13> <20140716140744.GD13555@tuxdriver.com> <6537905.kV7cN4HSlQ@xps13> In-Reply-To: <6537905.kV7cN4HSlQ@xps13> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.1.200.106] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 15:58:23 -0000 2.6.32 is minimum, but I believe still needs patches to fix hugetlbfs issue= s. I think the first kernel which had all the features we need, and doesn't re= quire patches, is 2.6.33.6. Jeff -----Original Message----- From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Thomas Monjalon Sent: Wednesday, July 16, 2014 7:27 AM To: John W. Linville Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] librte_pmd_packet: add PMD for AF_PACKET-ba= sed virtual devices 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=20 > > > > > kernel versions? What is the preferred method for coding such=20 > > > > > dependencies? > > > >=20 > > > > 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=20 > > > > maintenance nightmare because of backports (like RedHat do ;). > > >=20 > > > I suppose that it could be a configuration option? > >=20 > > If there is no other way to configure kernel-dependent features, we=20 > > can add options. But I feel that relying on a macro (#ifdef) would=20 > > be better if such macro exist. >=20 > I can add #ifdef or #if defined() for the newer definitions. Is there=20 > 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