From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3A775A046B for ; Thu, 25 Jul 2019 23:31:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9C0731C34B; Thu, 25 Jul 2019 23:31:42 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 17CBD1C33F for ; Thu, 25 Jul 2019 23:31:40 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5C0A0308424C; Thu, 25 Jul 2019 21:31:40 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.18.25.137]) by smtp.corp.redhat.com (Postfix) with ESMTP id DCCDB60A35; Thu, 25 Jul 2019 21:31:39 +0000 (UTC) From: Michael Santana To: dev@dpdk.org Cc: cristian.dumitrescu@intel.com, Michael Santana Francisco Date: Thu, 25 Jul 2019 17:31:38 -0400 Message-Id: <20190725213138.32588-1-msantana@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Thu, 25 Jul 2019 21:31:40 +0000 (UTC) Subject: [dpdk-dev] [PATCH] test/table_autotest: Decrease memory requirement 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" This patch reduces the memory footprint of tables for the unit test. Lower memory footprint means the test now passes when trying to allocate the tables. Signed-off-by: Michael Santana --- app/test/test_table_tables.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test/test_table_tables.c b/app/test/test_table_tables.c index 20df2e922..21c4086c2 100644 --- a/app/test/test_table_tables.c +++ b/app/test/test_table_tables.c @@ -464,7 +464,7 @@ test_table_lpm_ipv6(void) struct rte_table_lpm_ipv6_params lpm_params = { .name = "LPM", .n_rules = 1 << 24, - .number_tbl8s = 1 << 21, + .number_tbl8s = 1 << 18, .entry_unique_size = entry_size, .offset = APP_METADATA_OFFSET(32) }; @@ -492,7 +492,7 @@ test_table_lpm_ipv6(void) if (table != NULL) return -4; - lpm_params.number_tbl8s = 1 << 21; + lpm_params.number_tbl8s = 1 << 18; lpm_params.entry_unique_size = 0; table = rte_table_lpm_ipv6_ops.f_create(&lpm_params, 0, entry_size); if (table != NULL) -- 2.20.1