From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 1A199DE0 for ; Wed, 10 Dec 2014 04:59:18 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 09 Dec 2014 19:57:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,549,1413270000"; d="scan'208";a="651339759" Received: from kmsmsx152.gar.corp.intel.com ([172.21.73.87]) by orsmga002.jf.intel.com with ESMTP; 09 Dec 2014 19:59:13 -0800 Received: from kmsmsx154.gar.corp.intel.com (172.21.73.14) by KMSMSX152.gar.corp.intel.com (172.21.73.87) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 10 Dec 2014 11:58:35 +0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by KMSMSX154.gar.corp.intel.com (172.21.73.14) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 10 Dec 2014 11:58:34 +0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.182]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.5]) with mapi id 14.03.0195.001; Wed, 10 Dec 2014 11:58:33 +0800 From: "Zhang, Helin" To: Jincheng Miao , "dev@dpdk.org" Thread-Topic: [PATCH 0/4] compatibility fallback and replacement of kernel function invoking Thread-Index: AQHQFCvi48Sm+28oGkKLw1XtmptW3pyIMknQ Date: Wed, 10 Dec 2014 03:58:33 +0000 Message-ID: References: <1418182383-5744-1-git-send-email-jmiao@redhat.com> In-Reply-To: <1418182383-5744-1-git-send-email-jmiao@redhat.com> 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 Subject: Re: [dpdk-dev] [PATCH 0/4] compatibility fallback and replacement of kernel function invoking 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, 10 Dec 2014 03:59:19 -0000 Acked-by: Helin Zhang Note: Don't forget to add the version number to your patch name next time. = E.g. [PATCH v3 0/4] > -----Original Message----- > From: Jincheng Miao [mailto:jmiao@redhat.com] > Sent: Wednesday, December 10, 2014 11:33 AM > To: dev@dpdk.org > Cc: thomas.monjalon@6wind.com; Zhang, Helin; Jincheng Miao > Subject: [PATCH 0/4] compatibility fallback and replacement of kernel fun= ction > invoking >=20 > The related kernel function is: > - pci_num_vf, it is introduced from upstream linux-2.6.34. For RHEL-based > kernel, it is defined from RHEL5.9. >=20 > - kstrtoul, this function is united kernel API to replace strict_strtoul = in the > furture. It is introduced from linux-2.6.39. For RHEL6, it is defined fro= m > RHEL6.4. >=20 > This patchset do some compatiblity work for these two functions, and repl= ace > strict_strtoul which is depleted from linux-3.18. >=20 > v3: > Adjust pci_num_vf() introduced RHEL version number. > Seperate "replace strict_strtoul with kstrtoul" into 3 patches for igb_= uio, kni, > and xen_dom0. Add compat.h in kni and xen_dom0 for compatible with older > kernels. >=20 > v2: > Merge these two patch in one patchset. > Compatible with old kernel for kstrtoul. > Compatible with RHEL6 for pci_num_vf. >=20 > Jincheng Miao (4): > igb_uio: compatible with upstream longterm kernel and RHEL > igb_uio: replace strict_strtoul with kstrtoul > kni: replace strict_strtoul with kstrtoul > xen_dom0: replace strict_strtoul with kstrtoul >=20 > lib/librte_eal/linuxapp/igb_uio/compat.h | 11 ++++++++++- > lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 4 ++-- > lib/librte_eal/linuxapp/kni/compat.h | 16 > ++++++++++++++++ > lib/librte_eal/linuxapp/kni/kni_vhost.c | 2 +- > lib/librte_eal/linuxapp/xen_dom0/compat.h | 16 > ++++++++++++++++ > lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c | 2 +- > 6 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 > lib/librte_eal/linuxapp/kni/compat.h > create mode 100644 lib/librte_eal/linuxapp/xen_dom0/compat.h