DPDK patches and discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH v2 3/4] app/test: remove unused constants
Date: Wed, 11 May 2016 16:26:09 +0200	[thread overview]
Message-ID: <1462976770-6780-4-git-send-email-thomas.monjalon@6wind.com> (raw)
In-Reply-To: <1462976770-6780-1-git-send-email-thomas.monjalon@6wind.com>

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
---
 app/test/test_lpm6.c    |  2 --
 app/test/test_memcpy.c  | 15 ---------------
 app/test/test_mempool.c |  2 --
 app/test/test_ring.c    |  2 --
 4 files changed, 21 deletions(-)

diff --git a/app/test/test_lpm6.c b/app/test/test_lpm6.c
index 9545982..458a10b 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 b2bb4e0..8195e20 100644
--- a/app/test/test_memcpy.c
+++ b/app/test/test_memcpy.c
@@ -37,10 +37,7 @@
 #include <stdlib.h>
 
 #include <rte_common.h>
-#include <rte_cycles.h>
 #include <rte_random.h>
-#include <rte_malloc.h>
-
 #include <rte_memcpy.h>
 
 #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 893d5d0..f439834 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 4f8dc8f..9095e59 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;
 
-- 
2.7.0

  parent reply	other threads:[~2016-05-11 14:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-04 17:32 [dpdk-dev] [PATCH] app/test: shorten execution time Thomas Monjalon
2016-05-11 14:26 ` [dpdk-dev] [PATCH v2 0/4] reduce autotests constraints Thomas Monjalon
2016-05-11 14:26   ` [dpdk-dev] [PATCH v2 1/4] app/test: shorten execution time Thomas Monjalon
2016-05-11 14:26   ` [dpdk-dev] [PATCH v2 2/4] app/test: reduce memory needs Thomas Monjalon
2016-05-11 14:26   ` Thomas Monjalon [this message]
2016-05-11 14:26   ` [dpdk-dev] [PATCH v2 4/4] app/test: move cycles autotest to first group Thomas Monjalon
2016-05-24 15:20   ` [dpdk-dev] [PATCH v2 0/4] reduce autotests constraints Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1462976770-6780-4-git-send-email-thomas.monjalon@6wind.com \
    --to=thomas.monjalon@6wind.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).