From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tiwei Bie Subject: [PATCH v3 0/2] Various fixes for contigmem Date: Sun, 4 Jun 2017 13:53:22 +0800 Message-ID: <20170604055324.40506-1-tiwei.bie@intel.com> References: <20170522090349.82175-1-tiwei.bie@intel.com> Cc: bruce.richardson@intel.com To: dev@dpdk.org Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 7C78E7CC8 for ; Sun, 4 Jun 2017 08:05:59 +0200 (CEST) In-Reply-To: <20170522090349.82175-1-tiwei.bie@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The vm_page_replace_checked() was introduced in FreeBSD 11, so the build is broken on FreeBSD 10. The fix is to use vm_page_replace() directly and do the check in caller. --- v2: destroy the initialized mtx before failing or unloading v3: fix build on FreeBSD 10, refine comments Tiwei Bie (2): contigmem: free the allocated memory when error occurs contigmem: don't zero the pages during each mmap lib/librte_eal/bsdapp/contigmem/contigmem.c | 197 ++++++++++++++++++++++++---- 1 file changed, 171 insertions(+), 26 deletions(-) -- 2.12.1