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

Function parse_table_action_stats

dpdk/examples/ip_pipeline/cli.c:3647–3660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3645}
3646
3647static uint32_t
3648parse_table_action_stats(char **tokens,
3649 uint32_t n_tokens,
3650 struct table_rule_action *a)
3651{
3652 if ((n_tokens < 1) ||
3653 strcmp(tokens[0], "stats"))
3654 return 0;
3655
3656 a->stats.n_packets = 0;
3657 a->stats.n_bytes = 0;
3658 a->action_mask |= 1 << RTE_TABLE_ACTION_STATS;
3659 return 1;
3660}
3661
3662static uint32_t
3663parse_table_action_time(char **tokens,

Callers 1

parse_table_actionFunction · 0.85

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected