| 4369 | }; |
| 4370 | |
| 4371 | static void |
| 4372 | cmd_tx_vlan_set_parsed(void *parsed_result, |
| 4373 | __rte_unused struct cmdline *cl, |
| 4374 | __rte_unused void *data) |
| 4375 | { |
| 4376 | struct cmd_tx_vlan_set_result *res = parsed_result; |
| 4377 | |
| 4378 | if (port_id_is_invalid(res->port_id, ENABLED_WARN)) |
| 4379 | return; |
| 4380 | |
| 4381 | if (!port_is_stopped(res->port_id)) { |
| 4382 | fprintf(stderr, "Please stop port %d first\n", res->port_id); |
| 4383 | return; |
| 4384 | } |
| 4385 | |
| 4386 | tx_vlan_set(res->port_id, res->vlan_id); |
| 4387 | |
| 4388 | cmd_reconfig_device_queue(res->port_id, 1, 1); |
| 4389 | } |
| 4390 | |
| 4391 | static cmdline_parse_token_string_t cmd_tx_vlan_set_tx_vlan = |
| 4392 | TOKEN_STRING_INITIALIZER(struct cmd_tx_vlan_set_result, |
nothing calls this directly
no test coverage detected