Lines Matching refs:STACK_SIZE
14 #define STACK_SIZE 4096 macro
23 popped_objs = rte_calloc(NULL, STACK_SIZE, sizeof(void *), 0); in test_stack_push_pop()
26 __func__, __LINE__, STACK_SIZE * sizeof(void *)); in test_stack_push_pop()
30 for (i = 0; i < STACK_SIZE; i += bulk_sz) { in test_stack_push_pop()
48 if (rte_stack_free_count(s) != STACK_SIZE - i - bulk_sz) { in test_stack_push_pop()
51 STACK_SIZE - i - bulk_sz); in test_stack_push_pop()
57 for (i = 0; i < STACK_SIZE; i += bulk_sz) { in test_stack_push_pop()
67 if (rte_stack_count(s) != STACK_SIZE - i - bulk_sz) { in test_stack_push_pop()
70 STACK_SIZE - i - bulk_sz); in test_stack_push_pop()
84 for (i = 0; i < STACK_SIZE; i++) { in test_stack_push_pop()
85 if (obj_table[i] != popped_objs[STACK_SIZE - i - 1]) { in test_stack_push_pop()
88 popped_objs[STACK_SIZE - i - 1], i); in test_stack_push_pop()
106 obj_table = rte_calloc(NULL, STACK_SIZE, sizeof(void *), 0); in test_stack_basic()
109 __func__, __LINE__, STACK_SIZE * sizeof(void *)); in test_stack_basic()
113 for (i = 0; i < STACK_SIZE; i++) in test_stack_basic()
116 s = rte_stack_create(__func__, STACK_SIZE, rte_socket_id(), flags); in test_stack_basic()
135 if (rte_stack_free_count(s) != STACK_SIZE) { in test_stack_basic()
137 __func__, __LINE__, rte_stack_count(s), STACK_SIZE); in test_stack_basic()
155 ret = rte_stack_push(s, obj_table, 2 * STACK_SIZE); in test_stack_basic()
184 s[0] = rte_stack_create("test", STACK_SIZE, rte_socket_id(), flags); in test_stack_name_reuse()
191 s[1] = rte_stack_create("test", STACK_SIZE, rte_socket_id(), flags); in test_stack_name_reuse()
212 s = rte_stack_create(name, STACK_SIZE, rte_socket_id(), flags); in test_stack_name_length()