test/mempool: remove unused variable for lcores sync
Remove the unused synchro variable as there is no lcores sync in mempool function test. Signed-off-by: Joyce Kong <joyce.kong@arm.com> Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
8d08f7c9ae
commit
eb9ea11c97
@ -20,7 +20,6 @@
|
|||||||
#include <rte_eal.h>
|
#include <rte_eal.h>
|
||||||
#include <rte_per_lcore.h>
|
#include <rte_per_lcore.h>
|
||||||
#include <rte_lcore.h>
|
#include <rte_lcore.h>
|
||||||
#include <rte_atomic.h>
|
|
||||||
#include <rte_branch_prediction.h>
|
#include <rte_branch_prediction.h>
|
||||||
#include <rte_mempool.h>
|
#include <rte_mempool.h>
|
||||||
#include <rte_spinlock.h>
|
#include <rte_spinlock.h>
|
||||||
@ -57,8 +56,6 @@
|
|||||||
goto label; \
|
goto label; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
static rte_atomic32_t synchro;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* save the object number in the first 4 bytes of object data. All
|
* save the object number in the first 4 bytes of object data. All
|
||||||
* other bytes are set to 0.
|
* other bytes are set to 0.
|
||||||
@ -491,8 +488,6 @@ test_mempool(void)
|
|||||||
};
|
};
|
||||||
const char *default_pool_ops = rte_mbuf_best_mempool_ops();
|
const char *default_pool_ops = rte_mbuf_best_mempool_ops();
|
||||||
|
|
||||||
rte_atomic32_init(&synchro);
|
|
||||||
|
|
||||||
/* create a mempool (without cache) */
|
/* create a mempool (without cache) */
|
||||||
mp_nocache = rte_mempool_create("test_nocache", MEMPOOL_SIZE,
|
mp_nocache = rte_mempool_create("test_nocache", MEMPOOL_SIZE,
|
||||||
MEMPOOL_ELT_SIZE, 0, 0,
|
MEMPOOL_ELT_SIZE, 0, 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user