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

Function cmd_tx_vlan_set_parsed

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

Source from the content-addressed store, hash-verified

4369};
4370
4371static void
4372cmd_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
4391static cmdline_parse_token_string_t cmd_tx_vlan_set_tx_vlan =
4392 TOKEN_STRING_INITIALIZER(struct cmd_tx_vlan_set_result,

Callers

nothing calls this directly

Calls 4

port_id_is_invalidFunction · 0.85
port_is_stoppedFunction · 0.85
tx_vlan_setFunction · 0.85

Tested by

no test coverage detected