1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2016 Intel Corporation
5 #ifndef RTE_EXEC_ENV_WINDOWS
8 #include "test_table_combined.h"
9 #include "test_table.h"
10 #include <rte_table_lpm_ipv6.h>
12 #define MAX_TEST_KEYS 128
15 enum check_table_result {
17 CHECK_TABLE_PORT_CONFIG,
18 CHECK_TABLE_PORT_ENABLE,
19 CHECK_TABLE_TABLE_CONFIG,
20 CHECK_TABLE_ENTRY_ADD,
21 CHECK_TABLE_DEFAULT_ENTRY_ADD,
23 CHECK_TABLE_MANAGE_ERROR,
24 CHECK_TABLE_CONSISTENCY,
25 CHECK_TABLE_NO_TRAFFIC,
26 CHECK_TABLE_INVALID_PARAMETER,
29 struct table_packets {
30 uint32_t hit_packet[MAX_TEST_KEYS];
31 uint32_t miss_packet[MAX_TEST_KEYS];
32 uint32_t n_hit_packets;
33 uint32_t n_miss_packets;
36 combined_table_test table_tests_combined[] = {
37 test_table_lpm_combined,
38 test_table_lpm_ipv6_combined,
45 test_table_hash_cuckoo_combined,
48 unsigned n_table_tests_combined = RTE_DIM(table_tests_combined);
50 /* Generic port tester function */
52 test_table_type(struct rte_table_ops *table_ops, void *table_args,
53 void *key, struct table_packets *table_packets,
54 struct manage_ops *manage_ops, unsigned n_ops)
56 uint32_t ring_in_id, table_id, ring_out_id, ring_out_2_id;
59 RTE_SET_USED(manage_ops);
62 struct rte_pipeline_params pipeline_params = {
67 struct rte_pipeline *pipeline = rte_pipeline_create(&pipeline_params);
69 /* Create input ring */
70 struct rte_port_ring_reader_params ring_params_rx = {
74 struct rte_port_ring_writer_params ring_params_tx = {
76 .tx_burst_sz = RTE_PORT_IN_BURST_SIZE_MAX,
79 struct rte_pipeline_port_in_params ring_in_params = {
80 .ops = &rte_port_ring_reader_ops,
81 .arg_create = (void *)&ring_params_rx,
83 .burst_size = RTE_PORT_IN_BURST_SIZE_MAX,
86 if (rte_pipeline_port_in_create(pipeline, &ring_in_params,
88 rte_pipeline_free(pipeline);
89 return -CHECK_TABLE_PORT_CONFIG;
93 struct rte_pipeline_table_params table_params = {
95 .arg_create = table_args,
97 .f_action_miss = NULL,
99 .action_data_size = 0,
102 if (rte_pipeline_table_create(pipeline, &table_params,
104 rte_pipeline_free(pipeline);
105 return -CHECK_TABLE_TABLE_CONFIG;
108 /* Create output ports */
109 ring_params_tx.ring = RING_TX;
111 struct rte_pipeline_port_out_params ring_out_params = {
112 .ops = &rte_port_ring_writer_ops,
113 .arg_create = (void *)&ring_params_tx,
117 if (rte_pipeline_port_out_create(pipeline, &ring_out_params,
118 &ring_out_id) != 0) {
119 rte_pipeline_free(pipeline);
120 return -CHECK_TABLE_PORT_CONFIG;
123 ring_params_tx.ring = RING_TX_2;
125 if (rte_pipeline_port_out_create(pipeline, &ring_out_params,
126 &ring_out_2_id) != 0) {
127 rte_pipeline_free(pipeline);
128 return -CHECK_TABLE_PORT_CONFIG;
131 /* Add entry to the table */
132 struct rte_pipeline_table_entry default_entry = {
133 .action = RTE_PIPELINE_ACTION_DROP,
134 {.table_id = ring_out_id},
137 struct rte_pipeline_table_entry table_entry = {
138 .action = RTE_PIPELINE_ACTION_PORT,
139 {.table_id = ring_out_id},
142 struct rte_pipeline_table_entry *default_entry_ptr, *entry_ptr;
146 if (rte_pipeline_table_default_entry_add(pipeline, table_id,
147 &default_entry, &default_entry_ptr) != 0) {
148 rte_pipeline_free(pipeline);
149 return -CHECK_TABLE_DEFAULT_ENTRY_ADD;
152 if (rte_pipeline_table_entry_add(pipeline, table_id,
153 key ? key : &table_entry, &table_entry, &key_found,
155 rte_pipeline_free(pipeline);
156 return -CHECK_TABLE_ENTRY_ADD;
159 /* Create connections and check consistency */
160 if (rte_pipeline_port_in_connect_to_table(pipeline, ring_in_id,
162 rte_pipeline_free(pipeline);
163 return -CHECK_TABLE_CONNECT;
166 if (rte_pipeline_port_in_enable(pipeline, ring_in_id) != 0) {
167 rte_pipeline_free(pipeline);
168 return -CHECK_TABLE_PORT_ENABLE;
171 if (rte_pipeline_check(pipeline) != 0) {
172 rte_pipeline_free(pipeline);
173 return -CHECK_TABLE_CONSISTENCY;
178 /* Flow test - All hits */
179 if (table_packets->n_hit_packets) {
180 for (i = 0; i < table_packets->n_hit_packets; i++)
181 RING_ENQUEUE(RING_RX, table_packets->hit_packet[i]);
183 RUN_PIPELINE(pipeline);
185 VERIFY_TRAFFIC(RING_TX, table_packets->n_hit_packets,
186 table_packets->n_hit_packets);
189 /* Flow test - All misses */
190 if (table_packets->n_miss_packets) {
191 for (i = 0; i < table_packets->n_miss_packets; i++)
192 RING_ENQUEUE(RING_RX, table_packets->miss_packet[i]);
194 RUN_PIPELINE(pipeline);
196 VERIFY_TRAFFIC(RING_TX, table_packets->n_miss_packets, 0);
199 /* Flow test - Half hits, half misses */
200 if (table_packets->n_hit_packets && table_packets->n_miss_packets) {
201 for (i = 0; i < (table_packets->n_hit_packets) / 2; i++)
202 RING_ENQUEUE(RING_RX, table_packets->hit_packet[i]);
204 for (i = 0; i < (table_packets->n_miss_packets) / 2; i++)
205 RING_ENQUEUE(RING_RX, table_packets->miss_packet[i]);
207 RUN_PIPELINE(pipeline);
208 VERIFY_TRAFFIC(RING_TX, table_packets->n_hit_packets,
209 table_packets->n_hit_packets / 2);
212 /* Flow test - Single packet */
213 if (table_packets->n_hit_packets) {
214 RING_ENQUEUE(RING_RX, table_packets->hit_packet[0]);
215 RUN_PIPELINE(pipeline);
216 VERIFY_TRAFFIC(RING_TX, table_packets->n_hit_packets, 1);
218 if (table_packets->n_miss_packets) {
219 RING_ENQUEUE(RING_RX, table_packets->miss_packet[0]);
220 RUN_PIPELINE(pipeline);
221 VERIFY_TRAFFIC(RING_TX, table_packets->n_miss_packets, 0);
225 /* Change table entry action */
226 printf("Change entry action\n");
227 table_entry.table_id = ring_out_2_id;
229 if (rte_pipeline_table_default_entry_add(pipeline, table_id,
230 &default_entry, &default_entry_ptr) != 0) {
231 rte_pipeline_free(pipeline);
232 return -CHECK_TABLE_ENTRY_ADD;
235 if (rte_pipeline_table_entry_add(pipeline, table_id,
236 key ? key : &table_entry, &table_entry, &key_found,
238 rte_pipeline_free(pipeline);
239 return -CHECK_TABLE_ENTRY_ADD;
242 /* Check that traffic destination has changed */
243 if (table_packets->n_hit_packets) {
244 for (i = 0; i < table_packets->n_hit_packets; i++)
245 RING_ENQUEUE(RING_RX, table_packets->hit_packet[i]);
247 RUN_PIPELINE(pipeline);
248 VERIFY_TRAFFIC(RING_TX, table_packets->n_hit_packets, 0);
249 VERIFY_TRAFFIC(RING_TX_2, table_packets->n_hit_packets,
250 table_packets->n_hit_packets);
253 printf("delete entry\n");
254 /* Delete table entry */
255 rte_pipeline_table_entry_delete(pipeline, table_id,
256 key ? key : &table_entry, &key_found, NULL);
258 rte_pipeline_free(pipeline);
265 test_table_stub_combined(void)
268 struct table_packets table_packets;
270 printf("--------------\n");
271 printf("RUNNING TEST - %s\n", __func__);
272 printf("--------------\n");
273 for (i = 0; i < N_PACKETS; i++)
274 table_packets.hit_packet[i] = i;
276 table_packets.n_hit_packets = N_PACKETS;
277 table_packets.n_miss_packets = 0;
279 status = test_table_type(&rte_table_stub_ops, NULL, NULL,
280 &table_packets, NULL, 1);
281 VERIFY(status, CHECK_TABLE_OK);
287 test_table_lpm_combined(void)
292 struct rte_table_lpm_params lpm_params = {
295 .number_tbl8s = 1 << 8,
297 .entry_unique_size = 8,
298 .offset = APP_METADATA_OFFSET(0),
301 struct rte_table_lpm_key lpm_key = {
306 struct table_packets table_packets;
308 printf("--------------\n");
309 printf("RUNNING TEST - %s\n", __func__);
310 printf("--------------\n");
312 for (i = 0; i < N_PACKETS; i++)
313 table_packets.hit_packet[i] = 0xadadadad;
315 for (i = 0; i < N_PACKETS; i++)
316 table_packets.miss_packet[i] = 0xfefefefe;
318 table_packets.n_hit_packets = N_PACKETS;
319 table_packets.n_miss_packets = N_PACKETS;
321 status = test_table_type(&rte_table_lpm_ops, (void *)&lpm_params,
322 (void *)&lpm_key, &table_packets, NULL, 0);
323 VERIFY(status, CHECK_TABLE_OK);
325 /* Invalid parameters */
326 lpm_params.n_rules = 0;
328 status = test_table_type(&rte_table_lpm_ops, (void *)&lpm_params,
329 (void *)&lpm_key, &table_packets, NULL, 0);
330 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
332 lpm_params.n_rules = 1 << 24;
335 status = test_table_type(&rte_table_lpm_ops, (void *)&lpm_params,
336 (void *)&lpm_key, &table_packets, NULL, 0);
337 VERIFY(status, CHECK_TABLE_ENTRY_ADD);
341 status = test_table_type(&rte_table_lpm_ops, (void *)&lpm_params,
342 (void *)&lpm_key, &table_packets, NULL, 0);
343 VERIFY(status, CHECK_TABLE_ENTRY_ADD);
349 test_table_lpm_ipv6_combined(void)
354 struct rte_table_lpm_ipv6_params lpm_ipv6_params = {
357 .number_tbl8s = 1 << 13,
358 .entry_unique_size = 8,
359 .offset = APP_METADATA_OFFSET(32),
362 struct rte_table_lpm_ipv6_key lpm_ipv6_key = {
365 memset(lpm_ipv6_key.ip, 0xad, 16);
367 struct table_packets table_packets;
369 printf("--------------\n");
370 printf("RUNNING TEST - %s\n", __func__);
371 printf("--------------\n");
372 for (i = 0; i < N_PACKETS; i++)
373 table_packets.hit_packet[i] = 0xadadadad;
375 for (i = 0; i < N_PACKETS; i++)
376 table_packets.miss_packet[i] = 0xadadadab;
378 table_packets.n_hit_packets = N_PACKETS;
379 table_packets.n_miss_packets = N_PACKETS;
381 status = test_table_type(&rte_table_lpm_ipv6_ops,
382 (void *)&lpm_ipv6_params,
383 (void *)&lpm_ipv6_key, &table_packets, NULL, 0);
384 VERIFY(status, CHECK_TABLE_OK);
386 /* Invalid parameters */
387 lpm_ipv6_params.n_rules = 0;
389 status = test_table_type(&rte_table_lpm_ipv6_ops,
390 (void *)&lpm_ipv6_params,
391 (void *)&lpm_ipv6_key, &table_packets, NULL, 0);
392 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
394 lpm_ipv6_params.n_rules = 1 << 24;
395 lpm_ipv6_key.depth = 0;
397 status = test_table_type(&rte_table_lpm_ipv6_ops,
398 (void *)&lpm_ipv6_params,
399 (void *)&lpm_ipv6_key, &table_packets, NULL, 0);
400 VERIFY(status, CHECK_TABLE_ENTRY_ADD);
402 lpm_ipv6_key.depth = 129;
403 status = test_table_type(&rte_table_lpm_ipv6_ops,
404 (void *)&lpm_ipv6_params,
405 (void *)&lpm_ipv6_key, &table_packets, NULL, 0);
406 VERIFY(status, CHECK_TABLE_ENTRY_ADD);
412 test_table_hash8lru(void)
417 struct rte_table_hash_params key8lru_params = {
420 .key_offset = APP_METADATA_OFFSET(32),
423 .n_buckets = 1 << 16,
424 .f_hash = pipeline_test_hash,
429 uint32_t *k8lru = (uint32_t *) key8lru;
431 memset(key8lru, 0, sizeof(key8lru));
432 k8lru[0] = 0xadadadad;
434 struct table_packets table_packets;
436 printf("--------------\n");
437 printf("RUNNING TEST - %s\n", __func__);
438 printf("--------------\n");
439 for (i = 0; i < 50; i++)
440 table_packets.hit_packet[i] = 0xadadadad;
442 for (i = 0; i < 50; i++)
443 table_packets.miss_packet[i] = 0xfefefefe;
445 table_packets.n_hit_packets = 50;
446 table_packets.n_miss_packets = 50;
448 status = test_table_type(&rte_table_hash_key8_lru_ops,
449 (void *)&key8lru_params, (void *)key8lru, &table_packets,
451 VERIFY(status, CHECK_TABLE_OK);
453 /* Invalid parameters */
454 key8lru_params.n_keys = 0;
456 status = test_table_type(&rte_table_hash_key8_lru_ops,
457 (void *)&key8lru_params, (void *)key8lru, &table_packets,
459 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
461 key8lru_params.n_keys = 1<<16;
462 key8lru_params.f_hash = NULL;
464 status = test_table_type(&rte_table_hash_key8_lru_ops,
465 (void *)&key8lru_params, (void *)key8lru, &table_packets,
467 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
473 test_table_hash16lru(void)
478 struct rte_table_hash_params key16lru_params = {
481 .key_offset = APP_METADATA_OFFSET(32),
484 .n_buckets = 1 << 16,
485 .f_hash = pipeline_test_hash,
489 uint8_t key16lru[16];
490 uint32_t *k16lru = (uint32_t *) key16lru;
492 memset(key16lru, 0, sizeof(key16lru));
493 k16lru[0] = 0xadadadad;
495 struct table_packets table_packets;
497 printf("--------------\n");
498 printf("RUNNING TEST - %s\n", __func__);
499 printf("--------------\n");
500 for (i = 0; i < 50; i++)
501 table_packets.hit_packet[i] = 0xadadadad;
503 for (i = 0; i < 50; i++)
504 table_packets.miss_packet[i] = 0xfefefefe;
506 table_packets.n_hit_packets = 50;
507 table_packets.n_miss_packets = 50;
509 status = test_table_type(&rte_table_hash_key16_lru_ops,
510 (void *)&key16lru_params, (void *)key16lru, &table_packets,
512 VERIFY(status, CHECK_TABLE_OK);
514 /* Invalid parameters */
515 key16lru_params.n_keys = 0;
517 status = test_table_type(&rte_table_hash_key16_lru_ops,
518 (void *)&key16lru_params, (void *)key16lru, &table_packets,
520 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
522 key16lru_params.n_keys = 1<<16;
523 key16lru_params.f_hash = NULL;
525 status = test_table_type(&rte_table_hash_key16_lru_ops,
526 (void *)&key16lru_params, (void *)key16lru, &table_packets,
528 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
534 test_table_hash32lru(void)
539 struct rte_table_hash_params key32lru_params = {
542 .key_offset = APP_METADATA_OFFSET(32),
545 .n_buckets = 1 << 16,
546 .f_hash = pipeline_test_hash,
550 uint8_t key32lru[32];
551 uint32_t *k32lru = (uint32_t *) key32lru;
553 memset(key32lru, 0, sizeof(key32lru));
554 k32lru[0] = 0xadadadad;
556 struct table_packets table_packets;
558 printf("--------------\n");
559 printf("RUNNING TEST - %s\n", __func__);
560 printf("--------------\n");
561 for (i = 0; i < 50; i++)
562 table_packets.hit_packet[i] = 0xadadadad;
564 for (i = 0; i < 50; i++)
565 table_packets.miss_packet[i] = 0xbdadadad;
567 table_packets.n_hit_packets = 50;
568 table_packets.n_miss_packets = 50;
570 status = test_table_type(&rte_table_hash_key32_lru_ops,
571 (void *)&key32lru_params, (void *)key32lru, &table_packets,
573 VERIFY(status, CHECK_TABLE_OK);
575 /* Invalid parameters */
576 key32lru_params.n_keys = 0;
578 status = test_table_type(&rte_table_hash_key32_lru_ops,
579 (void *)&key32lru_params, (void *)key32lru, &table_packets,
581 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
583 key32lru_params.n_keys = 1<<16;
584 key32lru_params.f_hash = NULL;
586 status = test_table_type(&rte_table_hash_key32_lru_ops,
587 (void *)&key32lru_params, (void *)key32lru, &table_packets,
589 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
595 test_table_hash8ext(void)
600 struct rte_table_hash_params key8ext_params = {
603 .key_offset = APP_METADATA_OFFSET(32),
606 .n_buckets = 1 << 16,
607 .f_hash = pipeline_test_hash,
612 uint32_t *k8ext = (uint32_t *) key8ext;
614 memset(key8ext, 0, sizeof(key8ext));
615 k8ext[0] = 0xadadadad;
617 struct table_packets table_packets;
619 printf("--------------\n");
620 printf("RUNNING TEST - %s\n", __func__);
621 printf("--------------\n");
622 for (i = 0; i < 50; i++)
623 table_packets.hit_packet[i] = 0xadadadad;
625 for (i = 0; i < 50; i++)
626 table_packets.miss_packet[i] = 0xbdadadad;
628 table_packets.n_hit_packets = 50;
629 table_packets.n_miss_packets = 50;
631 status = test_table_type(&rte_table_hash_key8_ext_ops,
632 (void *)&key8ext_params, (void *)key8ext, &table_packets,
634 VERIFY(status, CHECK_TABLE_OK);
636 /* Invalid parameters */
637 key8ext_params.n_keys = 0;
639 status = test_table_type(&rte_table_hash_key8_ext_ops,
640 (void *)&key8ext_params, (void *)key8ext, &table_packets,
642 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
644 key8ext_params.n_keys = 1<<16;
645 key8ext_params.f_hash = NULL;
647 status = test_table_type(&rte_table_hash_key8_ext_ops,
648 (void *)&key8ext_params, (void *)key8ext, &table_packets,
650 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
656 test_table_hash16ext(void)
661 struct rte_table_hash_params key16ext_params = {
664 .key_offset = APP_METADATA_OFFSET(32),
667 .n_buckets = 1 << 16,
668 .f_hash = pipeline_test_hash,
672 uint8_t key16ext[16];
673 uint32_t *k16ext = (uint32_t *) key16ext;
675 memset(key16ext, 0, sizeof(key16ext));
676 k16ext[0] = 0xadadadad;
678 struct table_packets table_packets;
680 printf("--------------\n");
681 printf("RUNNING TEST - %s\n", __func__);
682 printf("--------------\n");
683 for (i = 0; i < 50; i++)
684 table_packets.hit_packet[i] = 0xadadadad;
686 for (i = 0; i < 50; i++)
687 table_packets.miss_packet[i] = 0xbdadadad;
689 table_packets.n_hit_packets = 50;
690 table_packets.n_miss_packets = 50;
692 status = test_table_type(&rte_table_hash_key16_ext_ops,
693 (void *)&key16ext_params, (void *)key16ext, &table_packets,
695 VERIFY(status, CHECK_TABLE_OK);
697 /* Invalid parameters */
698 key16ext_params.n_keys = 0;
700 status = test_table_type(&rte_table_hash_key16_ext_ops,
701 (void *)&key16ext_params, (void *)key16ext, &table_packets,
703 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
705 key16ext_params.n_keys = 1<<16;
706 key16ext_params.f_hash = NULL;
708 status = test_table_type(&rte_table_hash_key16_ext_ops,
709 (void *)&key16ext_params, (void *)key16ext, &table_packets,
711 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
717 test_table_hash32ext(void)
722 struct rte_table_hash_params key32ext_params = {
725 .key_offset = APP_METADATA_OFFSET(32),
728 .n_buckets = 1 << 16,
729 .f_hash = pipeline_test_hash,
733 uint8_t key32ext[32];
734 uint32_t *k32ext = (uint32_t *) key32ext;
736 memset(key32ext, 0, sizeof(key32ext));
737 k32ext[0] = 0xadadadad;
739 struct table_packets table_packets;
741 printf("--------------\n");
742 printf("RUNNING TEST - %s\n", __func__);
743 printf("--------------\n");
744 for (i = 0; i < 50; i++)
745 table_packets.hit_packet[i] = 0xadadadad;
747 for (i = 0; i < 50; i++)
748 table_packets.miss_packet[i] = 0xbdadadad;
750 table_packets.n_hit_packets = 50;
751 table_packets.n_miss_packets = 50;
753 status = test_table_type(&rte_table_hash_key32_ext_ops,
754 (void *)&key32ext_params, (void *)key32ext, &table_packets,
756 VERIFY(status, CHECK_TABLE_OK);
758 /* Invalid parameters */
759 key32ext_params.n_keys = 0;
761 status = test_table_type(&rte_table_hash_key32_ext_ops,
762 (void *)&key32ext_params, (void *)key32ext, &table_packets,
764 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
766 key32ext_params.n_keys = 1<<16;
767 key32ext_params.f_hash = NULL;
769 status = test_table_type(&rte_table_hash_key32_ext_ops,
770 (void *)&key32ext_params, (void *)key32ext, &table_packets,
772 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
778 test_table_hash_cuckoo_combined(void)
783 struct rte_table_hash_cuckoo_params cuckoo_params = {
786 .key_offset = APP_METADATA_OFFSET(32),
789 .n_buckets = 1 << 16,
790 .f_hash = pipeline_test_hash_cuckoo,
794 uint8_t key_cuckoo[32];
795 uint32_t *kcuckoo = (uint32_t *) key_cuckoo;
797 memset(key_cuckoo, 0, sizeof(key_cuckoo));
798 kcuckoo[0] = 0xadadadad;
800 struct table_packets table_packets;
802 printf("--------------\n");
803 printf("RUNNING TEST - %s\n", __func__);
804 printf("--------------\n");
805 for (i = 0; i < 50; i++)
806 table_packets.hit_packet[i] = 0xadadadad;
808 for (i = 0; i < 50; i++)
809 table_packets.miss_packet[i] = 0xbdadadad;
811 table_packets.n_hit_packets = 50;
812 table_packets.n_miss_packets = 50;
814 status = test_table_type(&rte_table_hash_cuckoo_ops,
815 (void *)&cuckoo_params, (void *)key_cuckoo, &table_packets,
817 VERIFY(status, CHECK_TABLE_OK);
819 /* Invalid parameters */
820 cuckoo_params.key_size = 0;
822 status = test_table_type(&rte_table_hash_cuckoo_ops,
823 (void *)&cuckoo_params, (void *)key_cuckoo, &table_packets,
825 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
827 cuckoo_params.key_size = 32;
828 cuckoo_params.n_keys = 0;
830 status = test_table_type(&rte_table_hash_cuckoo_ops,
831 (void *)&cuckoo_params, (void *)key_cuckoo, &table_packets,
833 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
835 cuckoo_params.n_keys = 1<<16;
836 cuckoo_params.f_hash = NULL;
838 status = test_table_type(&rte_table_hash_cuckoo_ops,
839 (void *)&cuckoo_params, (void *)key_cuckoo, &table_packets,
841 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
846 #endif /* !RTE_EXEC_ENV_WINDOWS */