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

Function cmd_set_qmap_parsed

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

Source from the content-addressed store, hash-verified

7421};
7422
7423static void
7424cmd_set_qmap_parsed(void *parsed_result,
7425 __rte_unused struct cmdline *cl,
7426 __rte_unused void *data)
7427{
7428 struct cmd_set_qmap_result *res = parsed_result;
7429 int is_rx = (strcmp(res->what, "tx") == 0) ? 0 : 1;
7430
7431 set_qmap(res->port_id, (uint8_t)is_rx, res->queue_id, res->map_value);
7432}
7433
7434static cmdline_parse_token_string_t cmd_setqmap_set =
7435 TOKEN_STRING_INITIALIZER(struct cmd_set_qmap_result,

Callers

nothing calls this directly

Calls 2

strcmpFunction · 0.85
set_qmapFunction · 0.85

Tested by

no test coverage detected