From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 36FF28E7B for ; Wed, 4 Nov 2015 09:30:51 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 04 Nov 2015 00:30:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,242,1444719600"; d="scan'208";a="678020992" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga003.jf.intel.com with ESMTP; 04 Nov 2015 00:30:20 -0800 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 4 Nov 2015 00:30:18 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 4 Nov 2015 00:30:18 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.100]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.41]) with mapi id 14.03.0248.002; Wed, 4 Nov 2015 16:30:16 +0800 From: "Zhang, Helin" To: Simon Kagstrom , "thomas.monjalon@6wind.com" Thread-Topic: [PATCH v2] kni: Use utsrelease.h to determine Ubuntu kernel version Thread-Index: AQHQ2xSoCvS3XGVMOE2F3IufWtdCx56L/7lg Date: Wed, 4 Nov 2015 08:30:16 +0000 Message-ID: References: <20150820085106.32188573@miho> In-Reply-To: <20150820085106.32188573@miho> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] 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 v2] kni: Use utsrelease.h to determine Ubuntu kernel version 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, 04 Nov 2015 08:30:51 -0000 > -----Original Message----- > From: Simon Kagstrom [mailto:simon.kagstrom@netinsight.net] > Sent: Thursday, August 20, 2015 2:51 PM > To: Zhang, Helin; thomas.monjalon@6wind.com; dev@dpdk.org > Subject: [PATCH v2] kni: Use utsrelease.h to determine Ubuntu kernel vers= ion >=20 > /proc/version_signature is the version for the host machine, but in e.g.,= chroots, > this does not necessarily match that DPDK is built for. DPDK will then bu= ild for the > wrong kernel version - that of the server, and not that installed in the = (build) > chroot. >=20 > The patch uses utsrelease.h from the kernel sources instead and fakes the > upload version. >=20 > Tested on a server with Ubuntu 12.04, building in a chroot for Ubuntu 14.= 04. >=20 > Signed-off-by: Simon Kagstrom > Signed-off-by: Johan Faltstrom Acked-by: Helin Zhang