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

Function parse_table_action_decap

dpdk/examples/ip_pipeline/cli.c:4044–4058  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4042}
4043
4044static uint32_t
4045parse_table_action_decap(char **tokens,
4046 uint32_t n_tokens,
4047 struct table_rule_action *a)
4048{
4049 if ((n_tokens < 2) ||
4050 strcmp(tokens[0], "decap"))
4051 return 0;
4052
4053 if (parser_read_uint16(&a->decap.n, tokens[1]))
4054 return 0;
4055
4056 a->action_mask |= 1 << RTE_TABLE_ACTION_DECAP;
4057 return 2;
4058}
4059
4060static uint32_t
4061parse_table_action(char **tokens,

Callers 1

parse_table_actionFunction · 0.85

Calls 2

strcmpFunction · 0.85
parser_read_uint16Function · 0.70

Tested by

no test coverage detected