| 337 | } |
| 338 | |
| 339 | static void |
| 340 | entry_data_copy(uint8_t *data, |
| 341 | struct rte_swx_table_entry_list *entries, |
| 342 | uint32_t n_entries, |
| 343 | uint32_t entry_data_size) |
| 344 | { |
| 345 | struct rte_swx_table_entry *entry; |
| 346 | uint32_t i = 0; |
| 347 | |
| 348 | if (!n_entries) |
| 349 | return; |
| 350 | |
| 351 | TAILQ_FOREACH(entry, entries, node) { |
| 352 | uint64_t *d = (uint64_t *)&data[i * entry_data_size]; |
| 353 | |
| 354 | d[0] = entry->action_id; |
| 355 | memcpy(&d[1], entry->action_data, entry_data_size - 8); |
| 356 | |
| 357 | i++; |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | struct table { |
| 362 | struct rte_acl_ctx *acl_ctx; |
no test coverage detected