Lines Matching refs:table
140 void *table; in test_table_stub() local
144 table = rte_table_stub_ops.f_create(NULL, 0, 1); in test_table_stub()
145 if (table == NULL) in test_table_stub()
156 rte_table_stub_ops.f_lookup(table, mbufs, -1, in test_table_stub()
174 void *table; in test_table_array() local
186 table = rte_table_array_ops.f_create(NULL, 0, 1); in test_table_array()
187 if (table != NULL) in test_table_array()
192 table = rte_table_array_ops.f_create(&array_params, 0, 1); in test_table_array()
193 if (table != NULL) in test_table_array()
198 table = rte_table_array_ops.f_create(&array_params, 0, 1); in test_table_array()
199 if (table != NULL) in test_table_array()
205 table = rte_table_array_ops.f_create(&array_params, 0, 1); in test_table_array()
206 if (table == NULL) in test_table_array()
211 table = rte_table_array_ops.f_create(&array_params, 0, 1); in test_table_array()
212 if (table == NULL) in test_table_array()
216 status = rte_table_array_ops.f_free(table); in test_table_array()
234 table = rte_table_array_ops.f_create(&array_params, 0, 1); in test_table_array()
235 if (table == NULL) in test_table_array()
243 status = rte_table_array_ops.f_add(table, (void *) &array_key_1, NULL, in test_table_array()
248 status = rte_table_array_ops.f_add(table, (void *) &array_key_1, in test_table_array()
254 status = rte_table_array_ops.f_add(table, (void *) &array_key_2, in test_table_array()
265 rte_table_array_ops.f_lookup(table, mbufs, -1, in test_table_array()
279 status = rte_table_array_ops.f_free(table); in test_table_array()
290 void *table; in test_table_lpm() local
307 table = rte_table_lpm_ops.f_create(NULL, 0, entry_size); in test_table_lpm()
308 if (table != NULL) in test_table_lpm()
313 table = rte_table_lpm_ops.f_create(&lpm_params, 0, entry_size); in test_table_lpm()
314 if (table != NULL) in test_table_lpm()
320 table = rte_table_lpm_ops.f_create(&lpm_params, 0, entry_size); in test_table_lpm()
321 if (table != NULL) in test_table_lpm()
328 table = rte_table_lpm_ops.f_create(&lpm_params, 0, entry_size); in test_table_lpm()
329 if (table != NULL) in test_table_lpm()
334 table = rte_table_lpm_ops.f_create(&lpm_params, 0, entry_size); in test_table_lpm()
335 if (table != NULL) in test_table_lpm()
340 table = rte_table_lpm_ops.f_create(&lpm_params, 0, entry_size); in test_table_lpm()
341 if (table == NULL) in test_table_lpm()
345 status = rte_table_lpm_ops.f_free(table); in test_table_lpm()
357 table = rte_table_lpm_ops.f_create(&lpm_params, 0, 1); in test_table_lpm()
358 if (table == NULL) in test_table_lpm()
366 status = rte_table_lpm_ops.f_add(table, NULL, &entry, &key_found, in test_table_lpm()
371 status = rte_table_lpm_ops.f_add(table, &lpm_key, NULL, &key_found, in test_table_lpm()
377 status = rte_table_lpm_ops.f_add(table, &lpm_key, &entry, &key_found, in test_table_lpm()
383 status = rte_table_lpm_ops.f_add(table, &lpm_key, &entry, &key_found, in test_table_lpm()
389 status = rte_table_lpm_ops.f_add(table, &lpm_key, &entry, &key_found, in test_table_lpm()
399 status = rte_table_lpm_ops.f_delete(table, NULL, &key_found, NULL); in test_table_lpm()
404 status = rte_table_lpm_ops.f_delete(table, &lpm_key, &key_found, NULL); in test_table_lpm()
409 status = rte_table_lpm_ops.f_delete(table, &lpm_key, &key_found, NULL); in test_table_lpm()
414 status = rte_table_lpm_ops.f_delete(table, &lpm_key, &key_found, NULL); in test_table_lpm()
418 status = rte_table_lpm_ops.f_delete(table, &lpm_key, &key_found, NULL); in test_table_lpm()
424 status = rte_table_lpm_ops.f_add(table, &lpm_key, &entry, &key_found, in test_table_lpm()
436 rte_table_lpm_ops.f_lookup(table, mbufs, -1, in test_table_lpm()
445 status = rte_table_lpm_ops.f_free(table); in test_table_lpm()
456 void *table; in test_table_lpm_ipv6() local
472 table = rte_table_lpm_ipv6_ops.f_create(NULL, 0, entry_size); in test_table_lpm_ipv6()
473 if (table != NULL) in test_table_lpm_ipv6()
478 table = rte_table_lpm_ipv6_ops.f_create(&lpm_params, 0, entry_size); in test_table_lpm_ipv6()
479 if (table != NULL) in test_table_lpm_ipv6()
485 table = rte_table_lpm_ipv6_ops.f_create(&lpm_params, 0, entry_size); in test_table_lpm_ipv6()
486 if (table != NULL) in test_table_lpm_ipv6()
491 table = rte_table_lpm_ipv6_ops.f_create(&lpm_params, 0, entry_size); in test_table_lpm_ipv6()
492 if (table != NULL) in test_table_lpm_ipv6()
497 table = rte_table_lpm_ipv6_ops.f_create(&lpm_params, 0, entry_size); in test_table_lpm_ipv6()
498 if (table != NULL) in test_table_lpm_ipv6()
502 table = rte_table_lpm_ipv6_ops.f_create(&lpm_params, 0, entry_size); in test_table_lpm_ipv6()
503 if (table != NULL) in test_table_lpm_ipv6()
509 table = rte_table_lpm_ipv6_ops.f_create(&lpm_params, 0, entry_size); in test_table_lpm_ipv6()
510 if (table == NULL) in test_table_lpm_ipv6()
514 status = rte_table_lpm_ipv6_ops.f_free(table); in test_table_lpm_ipv6()
530 table = rte_table_lpm_ipv6_ops.f_create(&lpm_params, 0, entry_size); in test_table_lpm_ipv6()
531 if (table == NULL) in test_table_lpm_ipv6()
539 status = rte_table_lpm_ipv6_ops.f_add(table, NULL, &entry, &key_found, in test_table_lpm_ipv6()
544 status = rte_table_lpm_ipv6_ops.f_add(table, &lpm_key, NULL, &key_found, in test_table_lpm_ipv6()
550 status = rte_table_lpm_ipv6_ops.f_add(table, &lpm_key, &entry, in test_table_lpm_ipv6()
556 status = rte_table_lpm_ipv6_ops.f_add(table, &lpm_key, &entry, in test_table_lpm_ipv6()
562 status = rte_table_lpm_ipv6_ops.f_add(table, &lpm_key, &entry, in test_table_lpm_ipv6()
573 status = rte_table_lpm_ipv6_ops.f_delete(table, NULL, &key_found, NULL); in test_table_lpm_ipv6()
578 status = rte_table_lpm_ipv6_ops.f_delete(table, &lpm_key, &key_found, in test_table_lpm_ipv6()
584 status = rte_table_lpm_ipv6_ops.f_delete(table, &lpm_key, &key_found, in test_table_lpm_ipv6()
590 status = rte_table_lpm_ipv6_ops.f_delete(table, &lpm_key, &key_found, in test_table_lpm_ipv6()
595 status = rte_table_lpm_ipv6_ops.f_delete(table, &lpm_key, &key_found, in test_table_lpm_ipv6()
602 status = rte_table_lpm_ipv6_ops.f_add(table, &lpm_key, &entry, in test_table_lpm_ipv6()
614 rte_table_lpm_ipv6_ops.f_lookup(table, mbufs, -1, in test_table_lpm_ipv6()
623 status = rte_table_lpm_ipv6_ops.f_free(table); in test_table_lpm_ipv6()
634 void *table; in test_table_hash_lru_generic() local
654 table = ops->f_create(&hash_params, 0, 1); in test_table_hash_lru_generic()
655 if (table != NULL) in test_table_hash_lru_generic()
661 table = ops->f_create(&hash_params, 0, 1); in test_table_hash_lru_generic()
662 if (table != NULL) in test_table_hash_lru_generic()
667 table = ops->f_create(&hash_params, 0, 1); in test_table_hash_lru_generic()
668 if (table == NULL) in test_table_hash_lru_generic()
672 status = ops->f_free(table); in test_table_hash_lru_generic()
687 table = ops->f_create(&hash_params, 0, 1); in test_table_hash_lru_generic()
688 if (table == NULL) in test_table_hash_lru_generic()
692 status = ops->f_add(table, &key, &entry, &key_found, &entry_ptr); in test_table_hash_lru_generic()
697 status = ops->f_delete(table, &key, &key_found, NULL); in test_table_hash_lru_generic()
701 status = ops->f_delete(table, &key, &key_found, NULL); in test_table_hash_lru_generic()
707 status = ops->f_add(table, &key, &entry, &key_found, &entry_ptr); in test_table_hash_lru_generic()
718 ops->f_lookup(table, mbufs, -1, &result_mask, (void **)entries); in test_table_hash_lru_generic()
726 status = ops->f_free(table); in test_table_hash_lru_generic()
737 void *table; in test_table_hash_ext_generic() local
757 table = ops->f_create(&hash_params, 0, 1); in test_table_hash_ext_generic()
758 if (table != NULL) in test_table_hash_ext_generic()
764 table = ops->f_create(&hash_params, 0, 1); in test_table_hash_ext_generic()
765 if (table == NULL) in test_table_hash_ext_generic()
771 table = ops->f_create(&hash_params, 0, 1); in test_table_hash_ext_generic()
772 if (table != NULL) in test_table_hash_ext_generic()
777 table = ops->f_create(&hash_params, 0, 1); in test_table_hash_ext_generic()
778 if (table == NULL) in test_table_hash_ext_generic()
782 status = ops->f_free(table); in test_table_hash_ext_generic()
797 table = ops->f_create(&hash_params, 0, 1); in test_table_hash_ext_generic()
798 if (table == NULL) in test_table_hash_ext_generic()
802 status = ops->f_add(table, &key, &entry, &key_found, &entry_ptr); in test_table_hash_ext_generic()
807 status = ops->f_delete(table, &key, &key_found, NULL); in test_table_hash_ext_generic()
811 status = ops->f_delete(table, &key, &key_found, NULL); in test_table_hash_ext_generic()
817 status = ops->f_add(table, &key, &entry, &key_found, &entry_ptr); in test_table_hash_ext_generic()
828 ops->f_lookup(table, mbufs, -1, &result_mask, (void **)entries); in test_table_hash_ext_generic()
836 status = ops->f_free(table); in test_table_hash_ext_generic()
898 void *table; in test_table_hash_cuckoo() local
917 table = rte_table_hash_cuckoo_ops.f_create(NULL, 0, entry_size); in test_table_hash_cuckoo()
918 if (table != NULL) in test_table_hash_cuckoo()
923 table = rte_table_hash_cuckoo_ops.f_create(&cuckoo_params, in test_table_hash_cuckoo()
925 if (table != NULL) in test_table_hash_cuckoo()
931 table = rte_table_hash_cuckoo_ops.f_create(&cuckoo_params, in test_table_hash_cuckoo()
933 if (table != NULL) in test_table_hash_cuckoo()
939 table = rte_table_hash_cuckoo_ops.f_create(&cuckoo_params, in test_table_hash_cuckoo()
941 if (table != NULL) in test_table_hash_cuckoo()
947 table = rte_table_hash_cuckoo_ops.f_create(&cuckoo_params, in test_table_hash_cuckoo()
949 if (table != NULL) in test_table_hash_cuckoo()
954 table = rte_table_hash_cuckoo_ops.f_create(&cuckoo_params, in test_table_hash_cuckoo()
956 if (table == NULL) in test_table_hash_cuckoo()
960 status = rte_table_hash_cuckoo_ops.f_free(table); in test_table_hash_cuckoo()
975 table = rte_table_hash_cuckoo_ops.f_create(&cuckoo_params, 0, 1); in test_table_hash_cuckoo()
976 if (table == NULL) in test_table_hash_cuckoo()
985 status = rte_table_hash_cuckoo_ops.f_add(table, NULL, &entry, in test_table_hash_cuckoo()
990 status = rte_table_hash_cuckoo_ops.f_add(table, &key_cuckoo, in test_table_hash_cuckoo()
995 status = rte_table_hash_cuckoo_ops.f_add(table, &key_cuckoo, in test_table_hash_cuckoo()
1000 status = rte_table_hash_cuckoo_ops.f_add(table, &key_cuckoo, in test_table_hash_cuckoo()
1011 status = rte_table_hash_cuckoo_ops.f_delete(table, NULL, in test_table_hash_cuckoo()
1016 status = rte_table_hash_cuckoo_ops.f_delete(table, &key_cuckoo, in test_table_hash_cuckoo()
1021 status = rte_table_hash_cuckoo_ops.f_delete(table, &key_cuckoo, in test_table_hash_cuckoo()
1028 status = rte_table_hash_cuckoo_ops.f_add(table, &key_cuckoo, in test_table_hash_cuckoo()
1041 rte_table_hash_cuckoo_ops.f_lookup(table, mbufs, -1, in test_table_hash_cuckoo()
1050 status = rte_table_hash_cuckoo_ops.f_free(table); in test_table_hash_cuckoo()