git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
examples/ip_frag: fix use of ethdev internal device array
[dpdk.git]
/
app
/
test
/
test_rcu_qsbr.c
diff --git
a/app/test/test_rcu_qsbr.c
b/app/test/test_rcu_qsbr.c
index
943a1e3
..
1d273e3
100644
(file)
--- a/
app/test/test_rcu_qsbr.c
+++ b/
app/test/test_rcu_qsbr.c
@@
-27,7
+27,7
@@
#define TEST_RCU_QSBR_CNT_INIT 1
uint16_t enabled_core_ids[RTE_MAX_LCORE];
#define TEST_RCU_QSBR_CNT_INIT 1
uint16_t enabled_core_ids[RTE_MAX_LCORE];
-u
int8_
t num_cores;
+u
nsigned in
t num_cores;
static uint32_t *keys;
#define TOTAL_ENTRY (1024 * 8)
static uint32_t *keys;
#define TOTAL_ENTRY (1024 * 8)
@@
-89,13
+89,17
@@
test_rcu_qsbr_get_memsize(void)
sz = rte_rcu_qsbr_get_memsize(0);
TEST_RCU_QSBR_RETURN_IF_ERROR((sz != 1), "Get Memsize for 0 threads");
sz = rte_rcu_qsbr_get_memsize(0);
TEST_RCU_QSBR_RETURN_IF_ERROR((sz != 1), "Get Memsize for 0 threads");
- sz = rte_rcu_qsbr_get_memsize(
RTE_MAX_LCORE
);
+ sz = rte_rcu_qsbr_get_memsize(
128
);
/* For 128 threads,
* for machines with cache line size of 64B - 8384
* for machines with cache line size of 128 - 16768
*/
/* For 128 threads,
* for machines with cache line size of 64B - 8384
* for machines with cache line size of 128 - 16768
*/
- TEST_RCU_QSBR_RETURN_IF_ERROR((sz != 8384 && sz != 16768),
- "Get Memsize");
+ if (RTE_CACHE_LINE_SIZE == 64)
+ TEST_RCU_QSBR_RETURN_IF_ERROR((sz != 8384),
+ "Get Memsize for 128 threads");
+ else if (RTE_CACHE_LINE_SIZE == 128)
+ TEST_RCU_QSBR_RETURN_IF_ERROR((sz != 16768),
+ "Get Memsize for 128 threads");
return 0;
}
return 0;
}
@@
-389,7
+393,7
@@
test_rcu_qsbr_synchronize_reader(void *arg)
static int
test_rcu_qsbr_synchronize(void)
{
static int
test_rcu_qsbr_synchronize(void)
{
- int i;
+
unsigned
int i;
printf("\nTest rte_rcu_qsbr_synchronize()\n");
printf("\nTest rte_rcu_qsbr_synchronize()\n");
@@
-890,8
+894,8
@@
error:
static int
test_rcu_qsbr_mw_mv_mqs(void)
{
static int
test_rcu_qsbr_mw_mv_mqs(void)
{
- int i, j;
- u
int8_
t test_cores;
+
unsigned
int i, j;
+ u
nsigned in
t test_cores;
writer_done = 0;
test_cores = num_cores / 4;
writer_done = 0;
test_cores = num_cores / 4;