| 5851 | }; |
| 5852 | |
| 5853 | static void cmd_set_allmulti_mode_parsed(void *parsed_result, |
| 5854 | __rte_unused struct cmdline *cl, |
| 5855 | void *allports) |
| 5856 | { |
| 5857 | struct cmd_set_allmulti_mode_result *res = parsed_result; |
| 5858 | int enable; |
| 5859 | portid_t i; |
| 5860 | |
| 5861 | if (!strcmp(res->mode, "on")) |
| 5862 | enable = 1; |
| 5863 | else |
| 5864 | enable = 0; |
| 5865 | |
| 5866 | /* all ports */ |
| 5867 | if (allports) { |
| 5868 | RTE_ETH_FOREACH_DEV(i) { |
| 5869 | eth_set_allmulticast_mode(i, enable); |
| 5870 | } |
| 5871 | } |
| 5872 | else { |
| 5873 | eth_set_allmulticast_mode(res->port_num, enable); |
| 5874 | } |
| 5875 | } |
| 5876 | |
| 5877 | static cmdline_parse_token_string_t cmd_setallmulti_set = |
| 5878 | TOKEN_STRING_INITIALIZER(struct cmd_set_allmulti_mode_result, set, "set"); |
nothing calls this directly
no test coverage detected