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

Function parse_fwd_coremask

dpdk/app/test-pmd/parameters.c:249–262  ·  view source on GitHub ↗

* Parse the coremask given as argument (hexadecimal string) and set * the global configuration of forwarding cores. */

Source from the content-addressed store, hash-verified

247 * the global configuration of forwarding cores.
248 */
249static void
250parse_fwd_coremask(const char *coremask)
251{
252 char *end;
253 unsigned long long int cm;
254
255 /* parse hexadecimal string */
256 end = NULL;
257 cm = strtoull(coremask, &end, 16);
258 if ((coremask[0] == '\0') || (end == NULL) || (*end != '\0'))
259 rte_exit(EXIT_FAILURE, "Invalid fwd core mask\n");
260 else if (set_fwd_lcores_mask((uint64_t) cm) < 0)
261 rte_exit(EXIT_FAILURE, "coremask is not valid\n");
262}
263
264/*
265 * Parse the coremask given as argument (hexadecimal string) and set

Callers 1

launch_args_parseFunction · 0.85

Calls 2

rte_exitFunction · 0.85
set_fwd_lcores_maskFunction · 0.85

Tested by

no test coverage detected