From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1FDECA0C45; Mon, 13 Sep 2021 16:34:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A2C9740151; Mon, 13 Sep 2021 16:34:36 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 08EB84014F for ; Mon, 13 Sep 2021 16:34:34 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10105"; a="201868106" X-IronPort-AV: E=Sophos;i="5.85,290,1624345200"; d="scan'208";a="201868106" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2021 07:34:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,290,1624345200"; d="scan'208";a="696750197" Received: from silpixa00399126.ir.intel.com ([10.237.223.29]) by fmsmga006.fm.intel.com with ESMTP; 13 Sep 2021 07:34:28 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , anatoly.burakov@intel.com Date: Mon, 13 Sep 2021 15:34:24 +0100 Message-Id: <20210913143424.185713-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] eal/freebsd: ignore in-memory option X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list 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 in-memory option is not supported on FreeBSD so print a warning and ignore the flag when it is specified for BSD apps. The lack of support is due to the different way in which memory is managed on FreeBSD using the contigmem driver rather than via a hugetlbfs filesystem. Fixes: 14de8734c401 ("eal: add --in-memory option") Cc: anatoly.burakov@intel.com Signed-off-by: Bruce Richardson --- lib/eal/freebsd/eal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/eal/freebsd/eal.c b/lib/eal/freebsd/eal.c index 6cee5ae369..fb734012a4 100644 --- a/lib/eal/freebsd/eal.c +++ b/lib/eal/freebsd/eal.c @@ -718,6 +718,10 @@ rte_eal_init(int argc, char **argv) /* FreeBSD always uses legacy memory model */ internal_conf->legacy_mem = true; + if (internal_conf->in_memory) { + RTE_LOG(WARNING, EAL, "Warning: ignoring unsupported flag, '%s'\n", OPT_IN_MEMORY); + internal_conf->in_memory = false; + } if (eal_plugins_init() < 0) { rte_eal_init_alert("Cannot init plugins"); -- 2.30.2