| 63 | } |
| 64 | |
| 65 | static uint32_t |
| 66 | count_entries(struct rte_swx_table_entry_list *entries) |
| 67 | { |
| 68 | struct rte_swx_table_entry *entry; |
| 69 | uint32_t n_entries = 0; |
| 70 | |
| 71 | if (!entries) |
| 72 | return 0; |
| 73 | |
| 74 | TAILQ_FOREACH(entry, entries, node) |
| 75 | n_entries++; |
| 76 | |
| 77 | return n_entries; |
| 78 | } |
| 79 | |
| 80 | static int |
| 81 | acl_table_cfg_get(struct rte_acl_config *cfg, struct rte_swx_table_params *p) |