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

Function parse_fwd_portmask

dpdk/app/test-pmd/parameters.c:268–281  ·  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

266 * the global configuration of forwarding cores.
267 */
268static void
269parse_fwd_portmask(const char *portmask)
270{
271 char *end;
272 unsigned long long int pm;
273
274 /* parse hexadecimal string */
275 end = NULL;
276 pm = strtoull(portmask, &end, 16);
277 if ((portmask[0] == '\0') || (end == NULL) || (*end != '\0'))
278 rte_exit(EXIT_FAILURE, "Invalid fwd port mask\n");
279 else
280 set_fwd_ports_mask((uint64_t) pm);
281}
282
283static void
284print_invalid_socket_id_error(void)

Callers 1

launch_args_parseFunction · 0.85

Calls 2

rte_exitFunction · 0.85
set_fwd_ports_maskFunction · 0.85

Tested by

no test coverage detected