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 DB353A0487 for ; Mon, 29 Jul 2019 17:18:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 043071BFB5; Mon, 29 Jul 2019 17:18:40 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 006311BFA1 for ; Mon, 29 Jul 2019 17:18:37 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 600AF30CC29E; Mon, 29 Jul 2019 15:18:37 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.18.25.137]) by smtp.corp.redhat.com (Postfix) with ESMTP id E68CE61790; Mon, 29 Jul 2019 15:18:35 +0000 (UTC) From: Michael Santana To: dev@dpdk.org Cc: cristian.dumitrescu@intel.com, Michael Santana Francisco Date: Mon, 29 Jul 2019 11:18:34 -0400 Message-Id: <20190729151834.13742-1-msantana@redhat.com> In-Reply-To: <20190725213138.32588-1-msantana@redhat.com> References: <20190725213138.32588-1-msantana@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Mon, 29 Jul 2019 15:18:37 +0000 (UTC) Subject: [dpdk-dev] [PATCH v2] 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. This patch is mainly to make table_autotest pass in CI. Signed-off-by: Michael Santana Acked-by: Cristian Dumitrescu --- 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