| 4542 | }; |
| 4543 | |
| 4544 | static void |
| 4545 | cmd_tx_vlan_reset_parsed(void *parsed_result, |
| 4546 | __rte_unused struct cmdline *cl, |
| 4547 | __rte_unused void *data) |
| 4548 | { |
| 4549 | struct cmd_tx_vlan_reset_result *res = parsed_result; |
| 4550 | |
| 4551 | if (port_id_is_invalid(res->port_id, ENABLED_WARN)) |
| 4552 | return; |
| 4553 | |
| 4554 | if (!port_is_stopped(res->port_id)) { |
| 4555 | fprintf(stderr, "Please stop port %d first\n", res->port_id); |
| 4556 | return; |
| 4557 | } |
| 4558 | |
| 4559 | tx_vlan_reset(res->port_id); |
| 4560 | |
| 4561 | cmd_reconfig_device_queue(res->port_id, 1, 1); |
| 4562 | } |
| 4563 | |
| 4564 | static cmdline_parse_token_string_t cmd_tx_vlan_reset_tx_vlan = |
| 4565 | TOKEN_STRING_INITIALIZER(struct cmd_tx_vlan_reset_result, |
nothing calls this directly
no test coverage detected