4 * Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
11 * * Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * * Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in
15 * the documentation and/or other materials provided with the
17 * * Neither the name of Intel Corporation nor the names of its
18 * contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 #ifdef RTE_LIBRTE_TABLE
36 #include "test_table_combined.h"
37 #include "test_table.h"
38 #include <rte_table_lpm_ipv6.h>
40 #define MAX_TEST_KEYS 128
43 enum check_table_result {
45 CHECK_TABLE_PORT_CONFIG,
46 CHECK_TABLE_PORT_ENABLE,
47 CHECK_TABLE_TABLE_CONFIG,
48 CHECK_TABLE_ENTRY_ADD,
49 CHECK_TABLE_DEFAULT_ENTRY_ADD,
51 CHECK_TABLE_MANAGE_ERROR,
52 CHECK_TABLE_CONSISTENCY,
53 CHECK_TABLE_NO_TRAFFIC,
54 CHECK_TABLE_INVALID_PARAMETER,
57 struct table_packets {
58 uint32_t hit_packet[MAX_TEST_KEYS];
59 uint32_t miss_packet[MAX_TEST_KEYS];
60 uint32_t n_hit_packets;
61 uint32_t n_miss_packets;
64 combined_table_test table_tests_combined[] = {
65 test_table_lpm_combined,
66 test_table_lpm_ipv6_combined,
75 unsigned n_table_tests_combined = RTE_DIM(table_tests_combined);
77 /* Generic port tester function */
79 test_table_type(struct rte_table_ops *table_ops, void *table_args,
80 void *key, struct table_packets *table_packets,
81 struct manage_ops *manage_ops, unsigned n_ops)
83 uint32_t ring_in_id, table_id, ring_out_id, ring_out_2_id;
86 RTE_SET_USED(manage_ops);
89 struct rte_pipeline_params pipeline_params = {
94 struct rte_pipeline *pipeline = rte_pipeline_create(&pipeline_params);
96 /* Create input ring */
97 struct rte_port_ring_reader_params ring_params_rx = {
101 struct rte_port_ring_writer_params ring_params_tx = {
103 .tx_burst_sz = RTE_PORT_IN_BURST_SIZE_MAX,
106 struct rte_pipeline_port_in_params ring_in_params = {
107 .ops = &rte_port_ring_reader_ops,
108 .arg_create = (void *)&ring_params_rx,
110 .burst_size = RTE_PORT_IN_BURST_SIZE_MAX,
113 if (rte_pipeline_port_in_create(pipeline, &ring_in_params,
115 return -CHECK_TABLE_PORT_CONFIG;
118 struct rte_pipeline_table_params table_params = {
120 .arg_create = table_args,
121 .f_action_hit = NULL,
122 .f_action_miss = NULL,
124 .action_data_size = 0,
127 if (rte_pipeline_table_create(pipeline, &table_params, &table_id) != 0)
128 return -CHECK_TABLE_TABLE_CONFIG;
130 /* Create output ports */
131 ring_params_tx.ring = RING_TX;
133 struct rte_pipeline_port_out_params ring_out_params = {
134 .ops = &rte_port_ring_writer_ops,
135 .arg_create = (void *)&ring_params_tx,
139 if (rte_pipeline_port_out_create(pipeline, &ring_out_params,
141 return -CHECK_TABLE_PORT_CONFIG;
143 ring_params_tx.ring = RING_TX_2;
145 if (rte_pipeline_port_out_create(pipeline, &ring_out_params,
146 &ring_out_2_id) != 0)
147 return -CHECK_TABLE_PORT_CONFIG;
149 /* Add entry to the table */
150 struct rte_pipeline_table_entry default_entry = {
151 .action = RTE_PIPELINE_ACTION_DROP,
152 {.table_id = ring_out_id},
155 struct rte_pipeline_table_entry table_entry = {
156 .action = RTE_PIPELINE_ACTION_PORT,
157 {.table_id = ring_out_id},
160 struct rte_pipeline_table_entry *default_entry_ptr, *entry_ptr;
164 if (rte_pipeline_table_default_entry_add(pipeline, table_id,
165 &default_entry, &default_entry_ptr) != 0)
166 return -CHECK_TABLE_DEFAULT_ENTRY_ADD;
168 if (rte_pipeline_table_entry_add(pipeline, table_id,
169 key ? key : &table_entry, &table_entry, &key_found,
171 return -CHECK_TABLE_ENTRY_ADD;
173 /* Create connections and check consistency */
174 if (rte_pipeline_port_in_connect_to_table(pipeline, ring_in_id,
176 return -CHECK_TABLE_CONNECT;
178 if (rte_pipeline_port_in_enable(pipeline, ring_in_id) != 0)
179 return -CHECK_TABLE_PORT_ENABLE;
181 if (rte_pipeline_check(pipeline) != 0)
182 return -CHECK_TABLE_CONSISTENCY;
186 /* Flow test - All hits */
187 if (table_packets->n_hit_packets) {
188 for (i = 0; i < table_packets->n_hit_packets; i++)
189 RING_ENQUEUE(RING_RX, table_packets->hit_packet[i]);
191 RUN_PIPELINE(pipeline);
193 VERIFY_TRAFFIC(RING_TX, table_packets->n_hit_packets,
194 table_packets->n_hit_packets);
197 /* Flow test - All misses */
198 if (table_packets->n_miss_packets) {
199 for (i = 0; i < table_packets->n_miss_packets; i++)
200 RING_ENQUEUE(RING_RX, table_packets->miss_packet[i]);
202 RUN_PIPELINE(pipeline);
204 VERIFY_TRAFFIC(RING_TX, table_packets->n_miss_packets, 0);
207 /* Flow test - Half hits, half misses */
208 if (table_packets->n_hit_packets && table_packets->n_miss_packets) {
209 for (i = 0; i < (table_packets->n_hit_packets) / 2; i++)
210 RING_ENQUEUE(RING_RX, table_packets->hit_packet[i]);
212 for (i = 0; i < (table_packets->n_miss_packets) / 2; i++)
213 RING_ENQUEUE(RING_RX, table_packets->miss_packet[i]);
215 RUN_PIPELINE(pipeline);
216 VERIFY_TRAFFIC(RING_TX, table_packets->n_hit_packets,
217 table_packets->n_hit_packets / 2);
220 /* Flow test - Single packet */
221 if (table_packets->n_hit_packets) {
222 RING_ENQUEUE(RING_RX, table_packets->hit_packet[0]);
223 RUN_PIPELINE(pipeline);
224 VERIFY_TRAFFIC(RING_TX, table_packets->n_hit_packets, 1);
226 if (table_packets->n_miss_packets) {
227 RING_ENQUEUE(RING_RX, table_packets->miss_packet[0]);
228 RUN_PIPELINE(pipeline);
229 VERIFY_TRAFFIC(RING_TX, table_packets->n_miss_packets, 0);
233 /* Change table entry action */
234 printf("Change entry action\n");
235 table_entry.table_id = ring_out_2_id;
237 if (rte_pipeline_table_default_entry_add(pipeline, table_id,
238 &default_entry, &default_entry_ptr) != 0)
239 return -CHECK_TABLE_ENTRY_ADD;
241 if (rte_pipeline_table_entry_add(pipeline, table_id,
242 key ? key : &table_entry, &table_entry, &key_found,
244 return -CHECK_TABLE_ENTRY_ADD;
246 /* Check that traffic destination has changed */
247 if (table_packets->n_hit_packets) {
248 for (i = 0; i < table_packets->n_hit_packets; i++)
249 RING_ENQUEUE(RING_RX, table_packets->hit_packet[i]);
251 RUN_PIPELINE(pipeline);
252 VERIFY_TRAFFIC(RING_TX, table_packets->n_hit_packets, 0);
253 VERIFY_TRAFFIC(RING_TX_2, table_packets->n_hit_packets,
254 table_packets->n_hit_packets);
257 printf("delete entry\n");
258 /* Delete table entry */
259 rte_pipeline_table_entry_delete(pipeline, table_id,
260 key ? key : &table_entry, &key_found, NULL);
262 rte_pipeline_free(pipeline);
269 test_table_stub_combined(void)
272 struct table_packets table_packets;
274 printf("--------------\n");
275 printf("RUNNING TEST - %s\n", __func__);
276 printf("--------------\n");
277 for (i = 0; i < N_PACKETS; i++)
278 table_packets.hit_packet[i] = i;
280 table_packets.n_hit_packets = N_PACKETS;
281 table_packets.n_miss_packets = 0;
283 status = test_table_type(&rte_table_stub_ops, NULL, NULL,
284 &table_packets, NULL, 1);
285 VERIFY(status, CHECK_TABLE_OK);
291 test_table_lpm_combined(void)
296 struct rte_table_lpm_params lpm_params = {
298 .entry_unique_size = 8,
302 struct rte_table_lpm_key lpm_key = {
307 struct table_packets table_packets;
309 printf("--------------\n");
310 printf("RUNNING TEST - %s\n", __func__);
311 printf("--------------\n");
313 for (i = 0; i < N_PACKETS; i++)
314 table_packets.hit_packet[i] = 0xadadadad;
316 for (i = 0; i < N_PACKETS; i++)
317 table_packets.miss_packet[i] = 0xfefefefe;
319 table_packets.n_hit_packets = N_PACKETS;
320 table_packets.n_miss_packets = N_PACKETS;
322 status = test_table_type(&rte_table_lpm_ops, (void *)&lpm_params,
323 (void *)&lpm_key, &table_packets, NULL, 0);
324 VERIFY(status, CHECK_TABLE_OK);
326 /* Invalid parameters */
327 lpm_params.n_rules = 0;
329 status = test_table_type(&rte_table_lpm_ops, (void *)&lpm_params,
330 (void *)&lpm_key, &table_packets, NULL, 0);
331 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
333 lpm_params.n_rules = 1 << 24;
336 status = test_table_type(&rte_table_lpm_ops, (void *)&lpm_params,
337 (void *)&lpm_key, &table_packets, NULL, 0);
338 VERIFY(status, CHECK_TABLE_ENTRY_ADD);
342 status = test_table_type(&rte_table_lpm_ops, (void *)&lpm_params,
343 (void *)&lpm_key, &table_packets, NULL, 0);
344 VERIFY(status, CHECK_TABLE_ENTRY_ADD);
350 test_table_lpm_ipv6_combined(void)
355 struct rte_table_lpm_ipv6_params lpm_ipv6_params = {
357 .number_tbl8s = 1 << 13,
358 .entry_unique_size = 8,
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_key8_lru_params key8lru_params = {
419 .f_hash = pipeline_test_hash,
421 .signature_offset = 0,
426 uint32_t *k8lru = (uint32_t *) key8lru;
428 memset(key8lru, 0, sizeof(key8lru));
429 k8lru[0] = 0xadadadad;
431 struct table_packets table_packets;
433 printf("--------------\n");
434 printf("RUNNING TEST - %s\n", __func__);
435 printf("--------------\n");
436 for (i = 0; i < 50; i++)
437 table_packets.hit_packet[i] = 0xadadadad;
439 for (i = 0; i < 50; i++)
440 table_packets.miss_packet[i] = 0xfefefefe;
442 table_packets.n_hit_packets = 50;
443 table_packets.n_miss_packets = 50;
445 status = test_table_type(&rte_table_hash_key8_lru_ops,
446 (void *)&key8lru_params, (void *)key8lru, &table_packets,
448 VERIFY(status, CHECK_TABLE_OK);
450 /* Invalid parameters */
451 key8lru_params.n_entries = 0;
453 status = test_table_type(&rte_table_hash_key8_lru_ops,
454 (void *)&key8lru_params, (void *)key8lru, &table_packets,
456 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
458 key8lru_params.n_entries = 1<<16;
459 key8lru_params.f_hash = NULL;
461 status = test_table_type(&rte_table_hash_key8_lru_ops,
462 (void *)&key8lru_params, (void *)key8lru, &table_packets,
464 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
470 test_table_hash16lru(void)
475 struct rte_table_hash_key16_lru_params key16lru_params = {
477 .f_hash = pipeline_test_hash,
479 .signature_offset = 0,
483 uint8_t key16lru[16];
484 uint32_t *k16lru = (uint32_t *) key16lru;
486 memset(key16lru, 0, sizeof(key16lru));
487 k16lru[0] = 0xadadadad;
489 struct table_packets table_packets;
491 printf("--------------\n");
492 printf("RUNNING TEST - %s\n", __func__);
493 printf("--------------\n");
494 for (i = 0; i < 50; i++)
495 table_packets.hit_packet[i] = 0xadadadad;
497 for (i = 0; i < 50; i++)
498 table_packets.miss_packet[i] = 0xfefefefe;
500 table_packets.n_hit_packets = 50;
501 table_packets.n_miss_packets = 50;
503 status = test_table_type(&rte_table_hash_key16_lru_ops,
504 (void *)&key16lru_params, (void *)key16lru, &table_packets,
506 VERIFY(status, CHECK_TABLE_OK);
508 /* Invalid parameters */
509 key16lru_params.n_entries = 0;
511 status = test_table_type(&rte_table_hash_key16_lru_ops,
512 (void *)&key16lru_params, (void *)key16lru, &table_packets,
514 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
516 key16lru_params.n_entries = 1<<16;
517 key16lru_params.f_hash = NULL;
519 status = test_table_type(&rte_table_hash_key16_lru_ops,
520 (void *)&key16lru_params, (void *)key16lru, &table_packets,
522 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
528 test_table_hash32lru(void)
533 struct rte_table_hash_key32_lru_params key32lru_params = {
535 .f_hash = pipeline_test_hash,
537 .signature_offset = 0,
541 uint8_t key32lru[32];
542 uint32_t *k32lru = (uint32_t *) key32lru;
544 memset(key32lru, 0, sizeof(key32lru));
545 k32lru[0] = 0xadadadad;
547 struct table_packets table_packets;
549 printf("--------------\n");
550 printf("RUNNING TEST - %s\n", __func__);
551 printf("--------------\n");
552 for (i = 0; i < 50; i++)
553 table_packets.hit_packet[i] = 0xadadadad;
555 for (i = 0; i < 50; i++)
556 table_packets.miss_packet[i] = 0xbdadadad;
558 table_packets.n_hit_packets = 50;
559 table_packets.n_miss_packets = 50;
561 status = test_table_type(&rte_table_hash_key32_lru_ops,
562 (void *)&key32lru_params, (void *)key32lru, &table_packets,
564 VERIFY(status, CHECK_TABLE_OK);
566 /* Invalid parameters */
567 key32lru_params.n_entries = 0;
569 status = test_table_type(&rte_table_hash_key32_lru_ops,
570 (void *)&key32lru_params, (void *)key32lru, &table_packets,
572 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
574 key32lru_params.n_entries = 1<<16;
575 key32lru_params.f_hash = NULL;
577 status = test_table_type(&rte_table_hash_key32_lru_ops,
578 (void *)&key32lru_params, (void *)key32lru, &table_packets,
580 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
586 test_table_hash8ext(void)
591 struct rte_table_hash_key8_ext_params key8ext_params = {
593 .n_entries_ext = 1<<15,
594 .f_hash = pipeline_test_hash,
596 .signature_offset = 0,
601 uint32_t *k8ext = (uint32_t *) key8ext;
603 memset(key8ext, 0, sizeof(key8ext));
604 k8ext[0] = 0xadadadad;
606 struct table_packets table_packets;
608 printf("--------------\n");
609 printf("RUNNING TEST - %s\n", __func__);
610 printf("--------------\n");
611 for (i = 0; i < 50; i++)
612 table_packets.hit_packet[i] = 0xadadadad;
614 for (i = 0; i < 50; i++)
615 table_packets.miss_packet[i] = 0xbdadadad;
617 table_packets.n_hit_packets = 50;
618 table_packets.n_miss_packets = 50;
620 status = test_table_type(&rte_table_hash_key8_ext_ops,
621 (void *)&key8ext_params, (void *)key8ext, &table_packets,
623 VERIFY(status, CHECK_TABLE_OK);
625 /* Invalid parameters */
626 key8ext_params.n_entries = 0;
628 status = test_table_type(&rte_table_hash_key8_ext_ops,
629 (void *)&key8ext_params, (void *)key8ext, &table_packets,
631 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
633 key8ext_params.n_entries = 1<<16;
634 key8ext_params.f_hash = NULL;
636 status = test_table_type(&rte_table_hash_key8_ext_ops,
637 (void *)&key8ext_params, (void *)key8ext, &table_packets,
639 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
641 key8ext_params.f_hash = pipeline_test_hash;
642 key8ext_params.n_entries_ext = 0;
644 status = test_table_type(&rte_table_hash_key8_ext_ops,
645 (void *)&key8ext_params, (void *)key8ext, &table_packets, NULL, 0);
646 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
652 test_table_hash16ext(void)
657 struct rte_table_hash_key16_ext_params key16ext_params = {
659 .n_entries_ext = 1<<15,
660 .f_hash = pipeline_test_hash,
662 .signature_offset = 0,
666 uint8_t key16ext[16];
667 uint32_t *k16ext = (uint32_t *) key16ext;
669 memset(key16ext, 0, sizeof(key16ext));
670 k16ext[0] = 0xadadadad;
672 struct table_packets table_packets;
674 printf("--------------\n");
675 printf("RUNNING TEST - %s\n", __func__);
676 printf("--------------\n");
677 for (i = 0; i < 50; i++)
678 table_packets.hit_packet[i] = 0xadadadad;
680 for (i = 0; i < 50; i++)
681 table_packets.miss_packet[i] = 0xbdadadad;
683 table_packets.n_hit_packets = 50;
684 table_packets.n_miss_packets = 50;
686 status = test_table_type(&rte_table_hash_key16_ext_ops,
687 (void *)&key16ext_params, (void *)key16ext, &table_packets,
689 VERIFY(status, CHECK_TABLE_OK);
691 /* Invalid parameters */
692 key16ext_params.n_entries = 0;
694 status = test_table_type(&rte_table_hash_key16_ext_ops,
695 (void *)&key16ext_params, (void *)key16ext, &table_packets,
697 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
699 key16ext_params.n_entries = 1<<16;
700 key16ext_params.f_hash = NULL;
702 status = test_table_type(&rte_table_hash_key16_ext_ops,
703 (void *)&key16ext_params, (void *)key16ext, &table_packets,
705 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
707 key16ext_params.f_hash = pipeline_test_hash;
708 key16ext_params.n_entries_ext = 0;
710 status = test_table_type(&rte_table_hash_key16_ext_ops,
711 (void *)&key16ext_params, (void *)key16ext, &table_packets, NULL, 0);
712 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
718 test_table_hash32ext(void)
723 struct rte_table_hash_key32_ext_params key32ext_params = {
725 .n_entries_ext = 1<<15,
726 .f_hash = pipeline_test_hash,
728 .signature_offset = 0,
732 uint8_t key32ext[32];
733 uint32_t *k32ext = (uint32_t *) key32ext;
735 memset(key32ext, 0, sizeof(key32ext));
736 k32ext[0] = 0xadadadad;
738 struct table_packets table_packets;
740 printf("--------------\n");
741 printf("RUNNING TEST - %s\n", __func__);
742 printf("--------------\n");
743 for (i = 0; i < 50; i++)
744 table_packets.hit_packet[i] = 0xadadadad;
746 for (i = 0; i < 50; i++)
747 table_packets.miss_packet[i] = 0xbdadadad;
749 table_packets.n_hit_packets = 50;
750 table_packets.n_miss_packets = 50;
752 status = test_table_type(&rte_table_hash_key32_ext_ops,
753 (void *)&key32ext_params, (void *)key32ext, &table_packets,
755 VERIFY(status, CHECK_TABLE_OK);
757 /* Invalid parameters */
758 key32ext_params.n_entries = 0;
760 status = test_table_type(&rte_table_hash_key32_ext_ops,
761 (void *)&key32ext_params, (void *)key32ext, &table_packets,
763 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
765 key32ext_params.n_entries = 1<<16;
766 key32ext_params.f_hash = NULL;
768 status = test_table_type(&rte_table_hash_key32_ext_ops,
769 (void *)&key32ext_params, (void *)key32ext, &table_packets,
771 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);
773 key32ext_params.f_hash = pipeline_test_hash;
774 key32ext_params.n_entries_ext = 0;
776 status = test_table_type(&rte_table_hash_key32_ext_ops,
777 (void *)&key32ext_params, (void *)key32ext, &table_packets,
779 VERIFY(status, CHECK_TABLE_TABLE_CONFIG);