From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id A1EBE5A3E; Thu, 23 Feb 2017 17:42:57 +0100 (CET) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP; 23 Feb 2017 08:42:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,198,1484035200"; d="scan'208";a="68264771" Received: from sivswdev01.ir.intel.com (HELO localhost.localdomain) ([10.237.217.45]) by orsmga005.jf.intel.com with ESMTP; 23 Feb 2017 08:42:50 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , stable@dpdk.org Date: Thu, 23 Feb 2017 16:42:03 +0000 Message-Id: <1487868123-30262-6-git-send-email-bruce.richardson@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1487695964-15593-1-git-send-email-bruce.richardson@intel.com> References: <1487695964-15593-1-git-send-email-bruce.richardson@intel.com> Subject: [dpdk-dev] [PATCH v2 5/5] examples/quota_watermark: fix requirement for 2M pages 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: Thu, 23 Feb 2017 16:42:58 -0000 The sample app was forcing the shared memory block for high/low watermarks to be placed in a memzone on 2M pages. This prevented it from running on systems with just 1G pages, so remove the flag forcing 2M pages. Fixes: 1d6c3ee3321a ("examples/quota_watermark: initial import") CC: stable@dpdk.org Signed-off-by: Bruce Richardson --- examples/quota_watermark/qw/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/quota_watermark/qw/init.c b/examples/quota_watermark/qw/init.c index e941ce8..95a9f94 100644 --- a/examples/quota_watermark/qw/init.c +++ b/examples/quota_watermark/qw/init.c @@ -168,7 +168,7 @@ setup_shared_variables(void) const struct rte_memzone *qw_memzone; qw_memzone = rte_memzone_reserve(QUOTA_WATERMARK_MEMZONE_NAME, - 2 * sizeof(int), rte_socket_id(), RTE_MEMZONE_2MB); + 2 * sizeof(int), rte_socket_id(), 0); if (qw_memzone == NULL) rte_exit(EXIT_FAILURE, "%s\n", rte_strerror(rte_errno)); -- 2.9.3