Lines Matching refs:STACK_SIZE

15 #define STACK_SIZE 4096  macro
24 popped_objs = rte_calloc(NULL, STACK_SIZE, sizeof(void *), 0); in test_stack_push_pop()
27 __func__, __LINE__, STACK_SIZE * sizeof(void *)); in test_stack_push_pop()
31 for (i = 0; i < STACK_SIZE; i += bulk_sz) { in test_stack_push_pop()
49 if (rte_stack_free_count(s) != STACK_SIZE - i - bulk_sz) { in test_stack_push_pop()
52 STACK_SIZE - i - bulk_sz); in test_stack_push_pop()
58 for (i = 0; i < STACK_SIZE; i += bulk_sz) { in test_stack_push_pop()
68 if (rte_stack_count(s) != STACK_SIZE - i - bulk_sz) { in test_stack_push_pop()
71 STACK_SIZE - i - bulk_sz); in test_stack_push_pop()
85 for (i = 0; i < STACK_SIZE; i++) { in test_stack_push_pop()
86 if (obj_table[i] != popped_objs[STACK_SIZE - i - 1]) { in test_stack_push_pop()
89 popped_objs[STACK_SIZE - i - 1], i); in test_stack_push_pop()
107 obj_table = rte_calloc(NULL, STACK_SIZE, sizeof(void *), 0); in test_stack_basic()
110 __func__, __LINE__, STACK_SIZE * sizeof(void *)); in test_stack_basic()
114 for (i = 0; i < STACK_SIZE; i++) in test_stack_basic()
117 s = rte_stack_create(__func__, STACK_SIZE, rte_socket_id(), flags); in test_stack_basic()
136 if (rte_stack_free_count(s) != STACK_SIZE) { in test_stack_basic()
138 __func__, __LINE__, rte_stack_count(s), STACK_SIZE); in test_stack_basic()
156 ret = rte_stack_push(s, obj_table, 2 * STACK_SIZE); in test_stack_basic()
185 s[0] = rte_stack_create("test", STACK_SIZE, rte_socket_id(), flags); in test_stack_name_reuse()
192 s[1] = rte_stack_create("test", STACK_SIZE, rte_socket_id(), flags); in test_stack_name_reuse()
213 s = rte_stack_create(name, STACK_SIZE, rte_socket_id(), flags); in test_stack_name_length()