tile: fix build
[dpdk.git] / app / test / test_func_reentrancy.c
index 300a3bc..baa01ff 100644 (file)
@@ -78,7 +78,7 @@ typedef void (*case_clean_t)(unsigned lcore_id);
 #define MAX_ITER_TIMES                      (16)
 #define MAX_LPM_ITER_TIMES                  (8)
 
-#define MEMPOOL_ELT_SIZE                    (0)
+#define MEMPOOL_ELT_SIZE                    (sizeof(uint32_t))
 #define MEMPOOL_SIZE                        (4)
 
 #define MAX_LCORES     RTE_MAX_MEMZONE / (MAX_ITER_TIMES * 4U)
@@ -507,8 +507,4 @@ test_func_reentrancy(void)
        return 0;
 }
 
-static struct test_command func_reentrancy_cmd = {
-       .command = "func_reentrancy_autotest",
-       .callback = test_func_reentrancy,
-};
-REGISTER_TEST_COMMAND(func_reentrancy_cmd);
+REGISTER_TEST_COMMAND(func_reentrancy_autotest, test_func_reentrancy);