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 7C78E7CC8 for ; Sun, 4 Jun 2017 08:05:59 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jun 2017 23:05:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,294,1493708400"; d="scan'208";a="1178017461" Received: from dpdk19.sh.intel.com (HELO localhost.localdomain) ([10.239.129.166]) by fmsmga002.fm.intel.com with ESMTP; 03 Jun 2017 23:05:57 -0700 From: Tiwei Bie To: dev@dpdk.org Cc: bruce.richardson@intel.com Date: Sun, 4 Jun 2017 13:53:22 +0800 Message-Id: <20170604055324.40506-1-tiwei.bie@intel.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170522090349.82175-1-tiwei.bie@intel.com> References: <20170522090349.82175-1-tiwei.bie@intel.com> Subject: [dpdk-dev] [PATCH v3 0/2] Various fixes for contigmem X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jun 2017 06:06:00 -0000 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