* Free TID tables. */
| 463 | * Free TID tables. |
| 464 | */ |
| 465 | static void tid_free(struct tid_info *t) |
| 466 | { |
| 467 | if (t->tid_tab) { |
| 468 | rte_bitmap_free(t->ftid_bmap); |
| 469 | |
| 470 | if (t->ftid_bmap_array) |
| 471 | t4_os_free(t->ftid_bmap_array); |
| 472 | |
| 473 | t4_os_free(t->tid_tab); |
| 474 | } |
| 475 | |
| 476 | memset(t, 0, sizeof(struct tid_info)); |
| 477 | } |
| 478 | |
| 479 | /** |
| 480 | * Allocate and initialize the TID tables. Returns 0 on success. |
no test coverage detected