From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by dpdk.org (Postfix) with ESMTP id CAF2858E0 for ; Wed, 16 Jul 2014 15:36:26 +0200 (CEST) Received: by mail-wi0-f176.google.com with SMTP id bs8so6184393wib.3 for ; Wed, 16 Jul 2014 06:37:18 -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=N17YCe6i4gINFW0VQB6N/73WYNyCUL78LSdEapVWCdE=; b=UhETnTNSZNNmwaqeXpW3YQQ0n7ton1bHHPmJEZtNQTAaC9jgiL/CJC+0KOwHBy+gcc ZI4NCWzJpyKBcG6dtHvIAds9d+/5JE7mTFdKgpwegz6znbgskzOKIQFDrEoZycecWHyu rzC7yek+5HE3rFUkHo/1TBUHomNeTlBShu4AqSQOluFudTBt2HAmT9OYUJMQ/hagsOmS ZYboOOrJz8EUKPQ4zlGad8gyu3IODigVHW8ralXvOL9x9Wy3KPowLe3j6+ws6MeHLrUT aWhpNbfVWIp8dnKN0FMSyhOltJlFLZIic1+3Zr1RFNNewuI23NwMGLx92N+VpUTJaTXw DUbQ== X-Gm-Message-State: ALoCoQl+/ed+FQmqboLjA5+mX9EllJtPLUP8UD+1rL+my+AbdVJ1+tqYzAuAqcxR0ZNXEelItq7d X-Received: by 10.180.212.113 with SMTP id nj17mr13397055wic.46.1405517837403; Wed, 16 Jul 2014 06:37:17 -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 ev9sm9103183wic.24.2014.07.16.06.37.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jul 2014 06:37:16 -0700 (PDT) From: Thomas Monjalon To: Neil Horman Date: Wed, 16 Jul 2014 15:37:09 +0200 Message-ID: <2519448.trfTD5GDiU@xps13> Organization: 6WIND User-Agent: KMail/4.13.2 (Linux/3.15.5-1-ARCH; KDE/4.13.2; x86_64; ; ) In-Reply-To: <20140716123530.GA22437@localhost.localdomain> References: <1405024369-30058-1-git-send-email-linville@tuxdriver.com> <5622385.bvoogjtUK7@xps13> <20140716123530.GA22437@localhost.localdomain> 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 13:36:26 -0000 2014-07-16 08:35, Neil Horman: > 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 ;). > > Actually, I feel the need to correct this (I know you're being humorous, but > just the same). You don't have a maintenence nightmare on your hands > because RedHat backports kernel features, you have a nightmare maintenece > situation on your hands because the DPDK uses kernel features that were > never meant to be directly accessed outside of kernel space. > Neil You're right. Removing kernel modules from DPDK is a nice goal. But here we were speaking about an userland library (AF_PACKET PMD) which rely on kernel features. -- Thomas