MCPcopy Create free account
hub / github.com/F-Stack/f-stack / entry_data_copy

Function entry_data_copy

dpdk/lib/table/rte_swx_table_wm.c:339–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339static void
340entry_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
361struct table {
362 struct rte_acl_ctx *acl_ctx;

Callers 1

table_createFunction · 0.85

Calls 1

memcpyFunction · 0.50

Tested by

no test coverage detected