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

Function cmd_set_mask_parsed

dpdk/app/test-pmd/cmdline.c:3690–3707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3688};
3689
3690static void cmd_set_mask_parsed(void *parsed_result,
3691 __rte_unused struct cmdline *cl,
3692 __rte_unused void *data)
3693{
3694 struct cmd_setmask_result *res = parsed_result;
3695
3696 if (test_done == 0) {
3697 fprintf(stderr, "Please stop forwarding first\n");
3698 return;
3699 }
3700 if (!strcmp(res->mask, "coremask")) {
3701 set_fwd_lcores_mask(res->hexavalue);
3702 fwd_config_setup();
3703 } else if (!strcmp(res->mask, "portmask")) {
3704 set_fwd_ports_mask(res->hexavalue);
3705 fwd_config_setup();
3706 }
3707}
3708
3709static cmdline_parse_token_string_t cmd_setmask_set =
3710 TOKEN_STRING_INITIALIZER(struct cmd_setmask_result, set, "set");

Callers

nothing calls this directly

Calls 4

strcmpFunction · 0.85
set_fwd_lcores_maskFunction · 0.85
fwd_config_setupFunction · 0.85
set_fwd_ports_maskFunction · 0.85

Tested by

no test coverage detected