From: Olivier Matz Date: Mon, 12 Sep 2016 11:38:08 +0000 (+0200) Subject: app/test: decrease memory requirements for hash X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c4783d9666ffad2bd95742b1292f68996f750b26;p=dpdk.git app/test: decrease memory requirements for hash In hash autotest, the size of tables that should be successfully created is 32K entries (256KB), except for the table called "different_name", which is 1M entries (8MB). When memory is too fragmented (with 2M hugepages), the test can fail. To avoid allocation failures due to memory fragmentation, decrease the size of the table to 32K. Signed-off-by: Olivier Matz --- diff --git a/app/test/test_hash.c b/app/test/test_hash.c index 94300e1912..2c87efe692 100644 --- a/app/test/test_hash.c +++ b/app/test/test_hash.c @@ -783,7 +783,7 @@ fbk_hash_unit_test(void) */ struct rte_fbk_hash_params different_name = { .name = "different_name", /* different name */ - .entries = RTE_FBK_HASH_ENTRIES_MAX, + .entries = LOCAL_FBK_HASH_ENTRIES_MAX, .entries_per_bucket = 4, .socket_id = 0, };