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

Function graph_worker_count_get

dpdk/app/graph/graph.c:125–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125static uint64_t
126graph_worker_count_get(void)
127{
128 uint64_t nb_worker = 0;
129 uint64_t coremask;
130
131 coremask = graph_config.params.coremask;
132 while (coremask) {
133 if (coremask & 0x1)
134 nb_worker++;
135
136 coremask = (coremask >> 1);
137 }
138
139 return nb_worker;
140}
141
142static struct rte_node_ethdev_config *
143graph_rxtx_node_config_get(uint32_t *num_conf, uint32_t *num_graphs)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected