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

Function count_entries

dpdk/lib/table/rte_swx_table_wm.c:65–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65static uint32_t
66count_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
80static int
81acl_table_cfg_get(struct rte_acl_config *cfg, struct rte_swx_table_params *p)

Callers 1

table_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected