From: Thomas Monjalon Date: Wed, 11 May 2016 06:39:09 +0000 (+0200) Subject: app/test: remove unused constants X-Git-Tag: spdx-start~6850 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=837b33a4c09ec1897e41d95fce0389e79b122278;p=dpdk.git app/test: remove unused constants Signed-off-by: Thomas Monjalon --- diff --git a/app/test/test_lpm6.c b/app/test/test_lpm6.c index 9545982d81..458a10bfdc 100644 --- a/app/test/test_lpm6.c +++ b/app/test/test_lpm6.c @@ -113,8 +113,6 @@ rte_lpm6_test tests6[] = { }; #define NUM_LPM6_TESTS (sizeof(tests6)/sizeof(tests6[0])) -#define RTE_LPM6_TBL24_NUM_ENTRIES (1 << 24) -#define RTE_LPM6_LOOKUP_SUCCESS 0x04000000 #define MAX_DEPTH 128 #define MAX_RULES 1000000 #define NUMBER_TBL8S (1 << 16) diff --git a/app/test/test_memcpy.c b/app/test/test_memcpy.c index b2bb4e0e28..8195e20992 100644 --- a/app/test/test_memcpy.c +++ b/app/test/test_memcpy.c @@ -37,10 +37,7 @@ #include #include -#include #include -#include - #include #include "test.h" @@ -65,18 +62,6 @@ static size_t buf_sizes[TEST_VALUE_RANGE]; #define SMALL_BUFFER_SIZE TEST_VALUE_RANGE #endif /* TEST_VALUE_RANGE == 0 */ - -/* - * Arrays of this size are used for measuring uncached memory accesses by - * picking a random location within the buffer. Make this smaller if there are - * memory allocation errors. - */ -#define LARGE_BUFFER_SIZE (100 * 1024 * 1024) - -/* How many times to run timing loop for performance tests */ -#define TEST_ITERATIONS 1000000 -#define TEST_BATCH_SIZE 100 - /* Data is aligned on this many bytes (power of 2) */ #define ALIGNMENT_UNIT 32 diff --git a/app/test/test_mempool.c b/app/test/test_mempool.c index 56bb07dfc8..b586249db4 100644 --- a/app/test/test_mempool.c +++ b/app/test/test_mempool.c @@ -71,8 +71,6 @@ * put them back in the pool. */ -#define N 65536 -#define TIME_S 5 #define MEMPOOL_ELT_SIZE 2048 #define MAX_KEEP 16 #define MEMPOOL_SIZE ((rte_lcore_count()*(MAX_KEEP+RTE_MEMPOOL_CACHE_MAX_SIZE))-1) diff --git a/app/test/test_ring.c b/app/test/test_ring.c index 4f8dc8ff9b..9095e59767 100644 --- a/app/test/test_ring.c +++ b/app/test/test_ring.c @@ -100,8 +100,6 @@ #define RING_SIZE 4096 #define MAX_BULK 32 -#define N 65536 -#define TIME_S 5 static rte_atomic32_t synchro;