| 50 | #endif |
| 51 | |
| 52 | static char *get_unique_name(void) |
| 53 | { |
| 54 | uint64_t tsc = rte_get_tsc_cycles(); |
| 55 | size_t size = sizeof(uint64_t) * 2 + 1; |
| 56 | char *name = calloc(1, size); |
| 57 | |
| 58 | if (!name) |
| 59 | return NULL; |
| 60 | |
| 61 | snprintf(name, size, "%016" PRIx64, tsc); |
| 62 | return name; |
| 63 | } |
| 64 | |
| 65 | static uint32_t |
| 66 | count_entries(struct rte_swx_table_entry_list *entries) |
no test coverage detected