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

Function parse_table_action_tm

dpdk/examples/ip_pipeline/cli.c:3210–3229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3208}
3209
3210static uint32_t
3211parse_table_action_tm(char **tokens,
3212 uint32_t n_tokens,
3213 struct table_rule_action *a)
3214{
3215 uint32_t subport_id, pipe_id;
3216
3217 if ((n_tokens < 5) ||
3218 strcmp(tokens[0], "tm") ||
3219 strcmp(tokens[1], "subport") ||
3220 parser_read_uint32(&subport_id, tokens[2]) ||
3221 strcmp(tokens[3], "pipe") ||
3222 parser_read_uint32(&pipe_id, tokens[4]))
3223 return 0;
3224
3225 a->tm.subport_id = subport_id;
3226 a->tm.pipe_id = pipe_id;
3227 a->action_mask |= 1 << RTE_TABLE_ACTION_TM;
3228 return 5;
3229}
3230
3231static uint32_t
3232parse_table_action_encap(char **tokens,

Callers 1

parse_table_actionFunction · 0.85

Calls 2

strcmpFunction · 0.85
parser_read_uint32Function · 0.70

Tested by

no test coverage detected