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

Function cmd_tx_vlan_reset_parsed

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

Source from the content-addressed store, hash-verified

4542};
4543
4544static void
4545cmd_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
4564static cmdline_parse_token_string_t cmd_tx_vlan_reset_tx_vlan =
4565 TOKEN_STRING_INITIALIZER(struct cmd_tx_vlan_reset_result,

Callers

nothing calls this directly

Calls 4

port_id_is_invalidFunction · 0.85
port_is_stoppedFunction · 0.85
tx_vlan_resetFunction · 0.85

Tested by

no test coverage detected