From patchwork Thu Oct 22 22:05:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 81833 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D6198A04DD; Fri, 23 Oct 2020 00:06:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7FE6E72E9; Fri, 23 Oct 2020 00:05:40 +0200 (CEST) Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) by dpdk.org (Postfix) with ESMTP id CF6B072E1; Fri, 23 Oct 2020 00:05:38 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.nyi.internal (Postfix) with ESMTP id 7DE8E5803F5; Thu, 22 Oct 2020 18:05:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 22 Oct 2020 18:05:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=JYvShnFZFo2ax MY2zsPO62RrisKZsZHAoMlJ1nsNQUQ=; b=lkc9yHXHKdKSxn6NrAtxVwtWGXi6V ApZXE2kN0dXo1cUDpVNV+sBHEJcwBH53iE75Bul7nj+rL+7rFXCdw3DINytzFFFO 1WO2l2AmOaLFXzzQYpqZIQ81FhmQf79PtaZEyGh++sWje1427VP/N+q2R8SnIp7j a9ghz36PPCOjg9Y2ir5IpYyf1g24snC7t+ZfjgV3/6cgfTF924l/VriO/fTSnxRx j38/0NYK3DsE0N2bYk82/WBePuH8k4Ep31WLWU+iYSUEfEDgdgT4/I8VjitjfbTv h0tgfJBqg0OAW8OHKi5cOlfMk4VcRyteUxNJz3l2MQV68ZGKdM7XMWofg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=JYvShnFZFo2axMY2zsPO62RrisKZsZHAoMlJ1nsNQUQ=; b=c+AOJRLM qqYTsGtNXrt/iZoUgKP4raeF/Z+LXin0m9geEjE/Q10za0H5atTUdbh5B59WKCPl ut+ZqjmbHkS5L3/6kKVC0/d81JINh8kM8vtv97CbCRU7FZ6aAPxIgiaDBvEYG45a pVLQuSlMdCn+xlBKfEui5Vid6ypfFKsJ1jVon5k4K1Fnp+JU4o77XXITeleIA1zP zLz9YsF5YyBUH2y9xFk2j3D1aKoSX5uM3UVW8yCkGfC71zTLtMJdW6F0D+4OQfSl lx9e/Aw8IXAS08pcmynYIhl+8Geg+uMrXI5Ky1XNjkwQlAIxQ3E4TQunJsEejTOI DZenE6q4fuxArQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrjeelgddtiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehm ohhnjhgrlhhonhdrnhgvtheqnecuggftrfgrthhtvghrnhepvdehgfeivdejgedtveehfe fhteelfefgieevgfffveefjeegtdfguedthedtgeevnecukfhppeejjedrudefgedrvddt fedrudekgeenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhroh hmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 153193064674; Thu, 22 Oct 2020 18:05:36 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: ferruh.yigit@intel.com, david.marchand@redhat.com, bruce.richardson@intel.com, anatoly.burakov@intel.com, olivier.matz@6wind.com, ciara.power@intel.com, akhil.goyal@nxp.com, fiona.trahe@intel.com, john.griffin@intel.com, deepak.k.jain@intel.com, stable@dpdk.org Date: Fri, 23 Oct 2020 00:05:21 +0200 Message-Id: <20201022220525.1532249-3-thomas@monjalon.net> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201022220525.1532249-1-thomas@monjalon.net> References: <20201022220525.1532249-1-thomas@monjalon.net> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 2/5] mem: fix config name in error logs 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" When introducing the new option CONFIG_RTE_MAX_MEM_MB_PER_TYPE, some logs were referencing a wrong name: CONFIG_RTE_MAX_MEM_PER_TYPE. Fixes: 66cc45e293ed ("mem: replace memseg with memseg lists") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon Acked-by: Anatoly Burakov --- lib/librte_eal/freebsd/eal_memory.c | 2 +- lib/librte_eal/linux/eal_memory.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/freebsd/eal_memory.c b/lib/librte_eal/freebsd/eal_memory.c index b8b337a554..8d4b26b9b8 100644 --- a/lib/librte_eal/freebsd/eal_memory.c +++ b/lib/librte_eal/freebsd/eal_memory.c @@ -174,7 +174,7 @@ rte_eal_hugepage_init(void) if (msl_idx == RTE_MAX_MEMSEG_LISTS) { RTE_LOG(ERR, EAL, "Could not find space for memseg. Please increase %s and/or %s in configuration.\n", RTE_STR(CONFIG_RTE_MAX_MEMSEG_PER_TYPE), - RTE_STR(CONFIG_RTE_MAX_MEM_PER_TYPE)); + RTE_STR(CONFIG_RTE_MAX_MEM_MB_PER_TYPE)); return -1; } arr = &msl->memseg_arr; diff --git a/lib/librte_eal/linux/eal_memory.c b/lib/librte_eal/linux/eal_memory.c index 3e47efe582..df0f07ee7e 100644 --- a/lib/librte_eal/linux/eal_memory.c +++ b/lib/librte_eal/linux/eal_memory.c @@ -714,7 +714,7 @@ remap_segment(struct hugepage_file *hugepages, int seg_start, int seg_end) if (msl_idx == RTE_MAX_MEMSEG_LISTS) { RTE_LOG(ERR, EAL, "Could not find space for memseg. Please increase %s and/or %s in configuration.\n", RTE_STR(CONFIG_RTE_MAX_MEMSEG_PER_TYPE), - RTE_STR(CONFIG_RTE_MAX_MEM_PER_TYPE)); + RTE_STR(CONFIG_RTE_MAX_MEM_MB_PER_TYPE)); return -1; }