| 3688 | }; |
| 3689 | |
| 3690 | static 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 | |
| 3709 | static cmdline_parse_token_string_t cmd_setmask_set = |
| 3710 | TOKEN_STRING_INITIALIZER(struct cmd_setmask_result, set, "set"); |
nothing calls this directly
no test coverage detected